From 73dbba3a657bb1372febbe4c41b3f904f0ade5f1 Mon Sep 17 00:00:00 2001 From: April Date: Sat, 12 Nov 2022 12:58:42 -0700 Subject: [PATCH] getData() not awaited in CO and DF records. --- recordGenerators/CurrentObservations.py | 2 +- recordGenerators/DailyForecast.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recordGenerators/CurrentObservations.py b/recordGenerators/CurrentObservations.py index 43bfe57..56e8861 100644 --- a/recordGenerators/CurrentObservations.py +++ b/recordGenerators/CurrentObservations.py @@ -63,7 +63,7 @@ async def makeDataFile(): await doc.write(header) for x, y in zip(tecciId, zipCodes): - getData(x, y) + await getData(x, y) async with aiofiles.open("./.temp/CurrentObservations.i2m", 'a') as end: await end.write(footer) diff --git a/recordGenerators/DailyForecast.py b/recordGenerators/DailyForecast.py index 4f131e7..47fbad6 100644 --- a/recordGenerators/DailyForecast.py +++ b/recordGenerators/DailyForecast.py @@ -61,7 +61,7 @@ async def makeDataFile(): await doc.write(header) for x, y in zip(tecciId, zipCodes): - getData(x, y) + await getData(x, y) async with open("./.temp/DailyForecast.i2m", 'a') as end: await end.write(footer)