Skip to content

Commit 003fb04

Browse files
committed
report to CHQ about quota rolling over
1 parent 8206e53 commit 003fb04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bodyfetcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def make_api_call_for_site(self, site):
7575
return # could add some retrying logic here, but eh.
7676

7777
if "quota_remaining" in response:
78+
if response["quota_remaining"] > GlobalVars.apiquota:
79+
GlobalVars.charcoal_hq.send_message("API quota rolled over with {} requests remaining.".format(GlobalVars.apiquota))
7880
GlobalVars.apiquota = response["quota_remaining"]
7981
else:
8082
GlobalVars.apiquota = 0

0 commit comments

Comments
 (0)