mirror of
				https://github.com/Brandon-Rozek/website.git
				synced 2025-10-31 13:51:13 +00: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…
	
	Add table
		Add a link
		
	
		Reference in a new issue