Made 2 definitions ints instead of floats
This commit is contained in:
parent
98cef3603c
commit
fd6e6827f2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
BGG_MAX_THING_BOARDGAMES = 20
|
||||
BGG_PLAY_PAGE_SIZE = 100
|
||||
|
|
@ -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] = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue