Skip to content
Snippets Groups Projects
Commit a337d791 authored by David Trattnig's avatar David Trattnig
Browse files

fix: fetcher init

parent 4bae2367
No related branches found
No related tags found
1 merge request!35ORM-less scheduling
Pipeline #7059 passed
......@@ -87,10 +87,10 @@ class TimetableService:
self.logger.debug("Trying to fetch new timeslots from API endpoints...")
if not self.api_fetcher:
fetcher = api.ApiFetcher()
fetcher.start()
self.api_fetcher = fetcher
response = fetcher.fetch()
self.api_fetcher = api.ApiFetcher()
self.api_fetcher.start()
response = self.api_fetcher.fetch()
self.api_fetcher = None
if response.code == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment