mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-21 15:56:29 -05:00
Replacing hard coded number with static variable
This commit is contained in:
parent
85b76c5627
commit
a8ecad7bba
1 changed files with 1 additions and 1 deletions
|
@ -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 "?"
|
||||
|
|
Loading…
Reference in a new issue