Skip to content

Commit

Permalink
Added timeout to GET
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelloeater committed Oct 31, 2023
1 parent d416688 commit caf1ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedi_gatus/config_gen/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generate_top_instances():
# TODO Ask dbo about adding params to library
# https://github.com/Fediseer/pythonseer/issues/7

d = requests.get(url='https://fediseer.com/api/v1/whitelist',
d = requests.get(url='https://fediseer.com/api/v1/whitelist', timeout=60,
params={'endorsements': 3, 'guarantors': 4, 'software_csv': 'lemmy', 'limit': 100, 'domains': True}).json()['domains']

# d = db.DbAccess().get_top_instances() # FIXME Backend is only returning a very small set of data... funnnnnn
Expand Down

0 comments on commit caf1ffe

Please sign in to comment.