mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-01-21 23:38:58 +00:00
fmt sync_calendar
This commit is contained in:
parent
0f9a8d7a74
commit
6e7c3cb7b2
@ -11,6 +11,7 @@ from . import (
|
|||||||
CalendarSync
|
CalendarSync
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def load_config():
|
def load_config():
|
||||||
with open('config.yml', 'r', encoding='utf-8') as f:
|
with open('config.yml', 'r', encoding='utf-8') as f:
|
||||||
result = yaml.safe_load(f)
|
result = yaml.safe_load(f)
|
||||||
@ -18,7 +19,7 @@ def load_config():
|
|||||||
|
|
||||||
|
|
||||||
def get_start_date(date_str):
|
def get_start_date(date_str):
|
||||||
result = datetime.datetime(1,1,1)
|
result = datetime.datetime(1, 1, 1)
|
||||||
if 'now' == date_str:
|
if 'now' == date_str:
|
||||||
result = datetime.datetime.utcnow()
|
result = datetime.datetime.utcnow()
|
||||||
else:
|
else:
|
||||||
@ -47,5 +48,6 @@ def main():
|
|||||||
sync.prepare_sync(start)
|
sync.prepare_sync(start)
|
||||||
sync.apply()
|
sync.apply()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user