diff --git a/src/config/definitions.py b/src/config/definitions.py index 56f1f2a..04ccd5a 100644 --- a/src/config/definitions.py +++ b/src/config/definitions.py @@ -3,5 +3,5 @@ import os ROOT_PATH = project_root = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) SECRETS_FILE_PATH = ROOT_PATH + '/secrets/auth.yaml' -BGG_MAX_THING_BOARDGAMES = 20.0 -BGG_PLAY_PAGE_SIZE = 100.0 \ No newline at end of file +BGG_MAX_THING_BOARDGAMES = 20 +BGG_PLAY_PAGE_SIZE = 100 \ No newline at end of file diff --git a/src/modules/bgg_connection.py b/src/modules/bgg_connection.py index e966b92..238bf59 100644 --- a/src/modules/bgg_connection.py +++ b/src/modules/bgg_connection.py @@ -292,7 +292,7 @@ def get_plays() -> list[play_classes.Play]: amount_of_plays_total = float(plays_first_page_xml_object.get('total')) - amount_of_pages_needed = math.ceil(amount_of_plays_total/definitions.BGG_PLAY_PAGE_SIZE) + amount_of_pages_needed = math.ceil(amount_of_plays_total/float(definitions.BGG_PLAY_PAGE_SIZE)) all_plays : list[play_classes.Play] = []