diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-11-23 19:46:56 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-11-23 19:46:56 +0100 |
commit | 2c05297468cf53301646cc3ff9b355a3f232a891 (patch) | |
tree | 55ecaffeff310e1da4964814c2f04988e0b901fe /storingen.py | |
parent | fcb2ed2598caee29c03256498b1facdd6334d0f3 (diff) |
update readme's and remove testing code
Diffstat (limited to 'storingen.py')
-rwxr-xr-x | storingen.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/storingen.py b/storingen.py index 9178b74..f11a1c8 100755 --- a/storingen.py +++ b/storingen.py @@ -10,10 +10,7 @@ from shared import * cal = Calendar() -def fake_disruptions(): - return read_file("./api_response.json") - -def real_disruptions(): +def get_disruptions(): key = read_file("./storingen.key").strip() headers = { 'Ocp-Apim-Subscription-Key': key } params = urllib.parse.urlencode({ 'isActive': 'true' }) @@ -24,9 +21,6 @@ def real_disruptions(): conn.close() return data -def get_disruptions(): - return real_disruptions() - def disruption2ical(disruption): ev = Event() ev['uid'] = disruption['id'] |