moving emails to config.json

This commit is contained in:
Lucas Oskorep committed 2022-07-18 13:32:28 -04:00
1 parent 0c151150ba
commit 67313e7aa7
4 files changed
+15 -6

No files matched your search

+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)