moving emails to config.json

This commit is contained in:
Lucas Oskorep
2022-07-18 13:32:28 -04:00
parent 0c151150ba
commit 67313e7aa7
4 changed files with 15 additions and 6 deletions
+6 -1
View File
@@ -1,3 +1,5 @@
import json
from calendar_grabber import CalGrab
@@ -8,7 +10,10 @@ def process_events(events):
def main():
cg = CalGrab("./.auth.json", "loskorep@productiveedge.com", [process_events])
with open("config.json") as f:
CALENDARS = json.load(f)
print(CALENDARS)
cg = CalGrab("./.auth.json", CALENDARS, [process_events])
cg.update_at_interval(5, 15)