From 6e7c3cb7b2936ebb2988987e64c48ecb26ef1e09 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 8 Mar 2020 13:10:42 +0300 Subject: [PATCH] fmt sync_calendar --- sync_ics2gcal/sync_calendar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sync_ics2gcal/sync_calendar.py b/sync_ics2gcal/sync_calendar.py index 814d9d5..cf39dc4 100644 --- a/sync_ics2gcal/sync_calendar.py +++ b/sync_ics2gcal/sync_calendar.py @@ -11,6 +11,7 @@ from . import ( CalendarSync ) + def load_config(): with open('config.yml', 'r', encoding='utf-8') as f: result = yaml.safe_load(f) @@ -18,7 +19,7 @@ def load_config(): def get_start_date(date_str): - result = datetime.datetime(1,1,1) + result = datetime.datetime(1, 1, 1) if 'now' == date_str: result = datetime.datetime.utcnow() else: @@ -47,5 +48,6 @@ def main(): sync.prepare_sync(start) sync.apply() + if __name__ == '__main__': main()