From 852b76b8515db90d53ccc8236a988c5b699e5c5d Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 8 Jan 2020 00:06:07 -0600 Subject: [PATCH] Removed __init__.py from top --- .gitignore | 1 + __init__.py | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 __init__.py diff --git a/.gitignore b/.gitignore index 9f8f1bd..1b3360b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.json __pycache__ /api_info +*.html diff --git a/__init__.py b/__init__.py deleted file mode 100644 index cdb9529..0000000 --- a/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -from gcalendar import calendar_api -import json -import pprint - -api = calendar_api("class", r"api_info\client_secret.json", "api_info") -cals = api.get_calendars() -cal = next( - filter(lambda cal: cal["id"] == api.ids["Raphael's School Schedule".lower()], cals) -) -with open("classes.json") as file: - bodies = json.load(file) -for body in bodies: - # body['colorId'] = cal['colorId'] - # pprint.pprint(body) - # input() - api.create_event("Raphael's School Schedule".lower(), body)