From a8ecad7bbabd377159fef8a4a91ba536e838d4b0 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sat, 21 May 2022 00:14:38 -0400 Subject: [PATCH] Replacing hard coded number with static variable --- refreshtoots_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refreshtoots_v2.py b/refreshtoots_v2.py index 3b0f48d..d1dbd7e 100755 --- a/refreshtoots_v2.py +++ b/refreshtoots_v2.py @@ -30,7 +30,7 @@ def retrieve_toots_from_server(): global MAX_TOOT_ID server_data = [] - for _ in range(math.ceil(RETRIEVE_NUM_TOOTS // 40)): + for _ in range(math.ceil(RETRIEVE_NUM_TOOTS // MAX_TOOTS_PER_QUERY)): # Grab toots from Mastodon limit_param = "?limit=" + str(RETRIEVE_NUM_TOOTS) \ if RETRIEVE_NUM_TOOTS > 0 else "?"