Browse Source

Removed __init__.py from top

module
Raphael Roberts 6 years ago
parent
commit
852b76b851
  1. 1
      .gitignore
  2. 16
      __init__.py

1
.gitignore

@ -2,3 +2,4 @@
*.json *.json
__pycache__ __pycache__
/api_info /api_info
*.html

16
__init__.py

@ -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)
Loading…
Cancel
Save