From 96064eec1220f9ccfab777fb8ad4ab90f7929592 Mon Sep 17 00:00:00 2001 From: s3lph Date: Wed, 21 Aug 2019 13:57:38 +0200 Subject: [PATCH] Remove unnecessary code for initial calendar scrape. --- icalendar_timeseries_server/cal.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/icalendar_timeseries_server/cal.py b/icalendar_timeseries_server/cal.py index 0e582ec..a2e2200 100644 --- a/icalendar_timeseries_server/cal.py +++ b/icalendar_timeseries_server/cal.py @@ -102,9 +102,6 @@ def scrape_calendar(name: str, config: CalendarConfig): def start_scrape_calendar(name: str, config: CalendarConfig): - # Get current time in configured timezone - tz = get_config().tz - now: datetime = datetime.now(tz) # Schedule first calendar scraping cron = Timer(0, lambda: scrape_calendar(name, config)) cron.start()