Skip to content

Commit

Permalink
Fix missing service_id param (#34)
Browse files Browse the repository at this point in the history
Bandaid fix to get pull_alerts.py working again; somehow #31 specified keyword args incorrectly.
  • Loading branch information
achantavy authored Dec 5, 2022
1 parent 7dc0a57 commit 803a7f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pull_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def recent_incidents_for_services(services, time_window):

except urllib.error.HTTPError as e:
if e.reason == 'URI Too Long':
mid_point = int(len(service_ids)/2)
mid_point = int(len(services)/2)
return recent_incidents_for_services(
service_ids=service_ids[:mid_point],
time_window=time_window
services[:mid_point],
time_window,
) + recent_incidents_for_services(
service_ids=service_ids[mid_point:],
time_window=time_window
services[mid_point:],
time_window,
)
raise

Expand Down

0 comments on commit 803a7f7

Please sign in to comment.