1
Fork 0
mirror of https://github.com/Steffo99/steamleaderboards.git synced 2024-11-21 23:34:17 +00:00

Fix another critical bug. Oops again.

This commit is contained in:
Steffo 2019-02-06 19:45:30 +01:00
parent 283441b63c
commit ea69d6c55f
2 changed files with 3 additions and 1 deletions

View file

@ -5,7 +5,7 @@ with open("README.md", "r") as f:
setuptools.setup( setuptools.setup(
name="steamleaderboards", name="steamleaderboards",
version="0.0.2", version="0.0.3",
author="Stefano Pigozzi", author="Stefano Pigozzi",
author_email="ste.pigozzi@gmail.com", author_email="ste.pigozzi@gmail.com",
description="A wrapper for the Steam Leaderboards", description="A wrapper for the Steam Leaderboards",

View file

@ -90,6 +90,8 @@ class Leaderboard:
entry_end = int(_bs.response.entryend.text) entry_end = int(_bs.response.entryend.text)
if entry_end < int(_bs.response.totalleaderboardentries.text): if entry_end < int(_bs.response.totalleaderboardentries.text):
next_request_url = f"https://steamcommunity.com/stats/{app_id}/leaderboards/{lbid}/?xml=1&start={entry_end + 1}" next_request_url = f"https://steamcommunity.com/stats/{app_id}/leaderboards/{lbid}/?xml=1&start={entry_end + 1}"
else:
next_request_url = None
else: else:
next_request_url = None next_request_url = None