From fd6e6827f28680c3bc50769246eaeb5d05efc942 Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Fri, 2 Aug 2024 15:09:20 +0200 Subject: [PATCH] Made 2 definitions ints instead of floats --- src/config/definitions.py | 4 ++-- src/modules/bgg_connection.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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] = []