mirror of
https://github.com/Steffo99/steamleaderboards.git
synced 2024-11-21 23:34:17 +00:00
Fix entry limiting in Leaderboard
Fixes #1 (again). How did I forget that?
This commit is contained in:
parent
af5940ffcd
commit
eda2c178e0
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ class Leaderboard:
|
||||||
self.entries.append(Entry(entry))
|
self.entries.append(Entry(entry))
|
||||||
if len(self.entries) >= limit:
|
if len(self.entries) >= limit:
|
||||||
next_request_url = None
|
next_request_url = None
|
||||||
|
self.entries = self.entries[:limit]
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue