From ab7ff6fca09b958fd31171135f81a2e497870504 Mon Sep 17 00:00:00 2001 From: April Date: Mon, 17 Oct 2022 23:03:56 -0700 Subject: [PATCH] Fix makeRadarImages() not being awaited in main.py --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 8b74b96..efbad3d 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ import asyncio import logging,coloredlogs from recordGenerators import DailyForecast,CurrentObservations,HourlyForecast,AirQuality,AirportDelays,PollenForecast,Breathing,Alerts -from radar import TWCRadarProcessor +from radar import TWCRadarProcessor, RadarProcessor l = logging.getLogger(__name__) @@ -23,7 +23,7 @@ async def grabAlertsLoop(): async def RadarProcessingLoop(): while True: - TWCRadarProcessor.makeRadarImages() + await TWCRadarProcessor.makeRadarImages() await asyncio.sleep(30 * 60) async def FiveMinUpdaters(): @@ -47,7 +47,7 @@ async def main(): # Create loops asyncio.create_task(grabAlertsLoop()) asyncio.create_task(FiveMinUpdaters()) - asyncio.create_task(HourUpdaters) + asyncio.create_task(HourUpdaters()) asyncio.create_task(RadarProcessingLoop()) if __name__ == "__main__":