This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import collections | |
import json | |
import sys | |
if len(sys.argv) < 2 or sys.argv[1] not in ["projects", "calls"]: | |
print("Usage: extcalls.py projects|calls [limit]", file = sys.stderr) | |
sys.exit(1) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import datetime | |
import sys | |
# Adds a 7-day rolling sum to a CSV | |
# Input: date,cases | |
# date format: yyyy-mm-dd | |
# Output: date,cases,last7days |