From 08da432ea20b5538f882a135123f448a02248e1d Mon Sep 17 00:00:00 2001 From: April Date: Sun, 13 Nov 2022 17:11:55 -0700 Subject: [PATCH] Fix syntax of previous commit --- recordGenerators/AchesAndPains.py | 2 +- recordGenerators/AirQuality.py | 2 +- recordGenerators/AirportDelays.py | 2 +- recordGenerators/Breathing.py | 2 +- recordGenerators/CurrentObservations.py | 2 +- recordGenerators/DailyForecast.py | 2 +- recordGenerators/HeatingAndCooling.py | 2 +- recordGenerators/HourlyForecast.py | 2 +- recordGenerators/MosquitoActivity.py | 2 +- recordGenerators/PollenForecast.py | 2 +- recordGenerators/TideForecast.py | 2 +- recordGenerators/WateringNeeds.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/recordGenerators/AchesAndPains.py b/recordGenerators/AchesAndPains.py index ff686b1..6c07aa3 100644 --- a/recordGenerators/AchesAndPains.py +++ b/recordGenerators/AchesAndPains.py @@ -74,7 +74,7 @@ async def makeRecord(): file = "./.temp/AchesAndPains.gz" command = '' - await loop.run_in_executor(bit.sendFile([file], [command], 1, 0)) + await loop.run_in_executor(None, bit.sendFile([file], [command], 1, 0)) remove('./.temp/AchesAndPains.i2m') remove('./.temp/AchesAndPains.gz') \ No newline at end of file diff --git a/recordGenerators/AirQuality.py b/recordGenerators/AirQuality.py index 94626f9..aeb556b 100644 --- a/recordGenerators/AirQuality.py +++ b/recordGenerators/AirQuality.py @@ -94,7 +94,7 @@ async def writeData(): comand = commands.append('') numFiles = len(files) - await loop.run_in_executor(bit.sendFile(files, commands, numFiles, 0)) + await loop.run_in_executor(None, bit.sendFile(files, commands, numFiles, 0)) os.remove("./.temp/AirQuality.i2m") os.remove("./.temp/AirQuality.gz") diff --git a/recordGenerators/AirportDelays.py b/recordGenerators/AirportDelays.py index e5b8a0d..e9337ed 100644 --- a/recordGenerators/AirportDelays.py +++ b/recordGenerators/AirportDelays.py @@ -94,7 +94,7 @@ async def writeData(): comand = commands.append('') numFiles = len(files) - await loop.run_in_executor(bit.sendFile(files, commands, numFiles, 0)) + await loop.run_in_executor(None, bit.sendFile(files, commands, numFiles, 0)) os.remove("./.temp/AirportDelays.i2m") os.remove("./.temp/AirportDelays.gz") diff --git a/recordGenerators/Breathing.py b/recordGenerators/Breathing.py index d5b6ee8..097ed79 100644 --- a/recordGenerators/Breathing.py +++ b/recordGenerators/Breathing.py @@ -86,7 +86,7 @@ async def makeDataFile(): command = commands.append('') numFiles = len(files) - await loop.run_in_executor(bit.sendFile(files, commands, numFiles, 0)) + await loop.run_in_executor(None, bit.sendFile(files, commands, numFiles, 0)) os.remove("./.temp/Breathing.i2m") os.remove("./.temp/Breathing.gz") \ No newline at end of file diff --git a/recordGenerators/CurrentObservations.py b/recordGenerators/CurrentObservations.py index ac30fc1..724fdb8 100644 --- a/recordGenerators/CurrentObservations.py +++ b/recordGenerators/CurrentObservations.py @@ -92,7 +92,7 @@ async def makeDataFile(): command = commands.append('') numFiles = len(files) - await loop.run_in_executor(await loop.run_in_executor(bit.sendFile(files, commands, numFiles, 0))) + await loop.run_in_executor(await loop.run_in_executor(None, bit.sendFile(files, commands, numFiles, 0))) os.remove("./.temp/CurrentObservations.i2m") os.remove("./.temp/CurrentObservations.gz") diff --git a/recordGenerators/DailyForecast.py b/recordGenerators/DailyForecast.py index 0d9ea99..e0087d7 100644 --- a/recordGenerators/DailyForecast.py +++ b/recordGenerators/DailyForecast.py @@ -87,7 +87,7 @@ async def makeDataFile(): command = commands.append('') numFiles = len(files) - await loop.run_in_executor(bit.sendFile(files, commands, numFiles, 0)) + await loop.run_in_executor(None, bit.sendFile(files, commands, numFiles, 0)) os.remove("./.temp/DailyForecast.i2m") os.remove("./.temp/DailyForecast.gz") \ No newline at end of file diff --git a/recordGenerators/HeatingAndCooling.py b/recordGenerators/HeatingAndCooling.py index 3b07a3b..f2bdd33 100644 --- a/recordGenerators/HeatingAndCooling.py +++ b/recordGenerators/HeatingAndCooling.py @@ -74,7 +74,7 @@ async def makeRecord(): file = "./.temp/HeatingAndCooling.gz" command = '' - await loop.run_in_executor(bit.sendFile([file], [command], 1, 0)) + await loop.run_in_executor(None, bit.sendFile([file], [command], 1, 0)) remove('./.temp/HeatingAndCooling.i2m') remove('./.temp/HeatingAndCooling.gz') \ No newline at end of file diff --git a/recordGenerators/HourlyForecast.py b/recordGenerators/HourlyForecast.py index eaf76d3..c730154 100644 --- a/recordGenerators/HourlyForecast.py +++ b/recordGenerators/HourlyForecast.py @@ -89,7 +89,7 @@ async def makeDataFile(): command = commands.append('') numFiles = len(files) - await loop.run_in_executor(bit.sendFile(files, commands, numFiles, 0)) + await loop.run_in_executor(None, bit.sendFile(files, commands, numFiles, 0)) os.remove("./.temp/HourlyForecast.i2m") os.remove("./.temp/HourlyForecast.gz") \ No newline at end of file diff --git a/recordGenerators/MosquitoActivity.py b/recordGenerators/MosquitoActivity.py index d3fa07f..7463e81 100644 --- a/recordGenerators/MosquitoActivity.py +++ b/recordGenerators/MosquitoActivity.py @@ -74,7 +74,7 @@ async def makeRecord(): file = "./.temp/MosquitoActivity.gz" command = '' - await loop.run_in_executor(bit.sendFile([file], [command], 1, 0)) + await loop.run_in_executor(None, bit.sendFile([file], [command], 1, 0)) remove('./.temp/MosquitoActivity.i2m') remove('./.temp/MosquitoActivity.gz') \ No newline at end of file diff --git a/recordGenerators/PollenForecast.py b/recordGenerators/PollenForecast.py index 4fc90bc..c8a91fc 100644 --- a/recordGenerators/PollenForecast.py +++ b/recordGenerators/PollenForecast.py @@ -86,7 +86,7 @@ async def makeDataFile(): command = commands.append('') numFiles = len(files) - await loop.run_in_executor(bit.sendFile(files, commands, numFiles, 0)) + await loop.run_in_executor(None, bit.sendFile(files, commands, numFiles, 0)) os.remove("./.temp/PollenForecast.i2m") os.remove("./.temp/PollenForecast.gz") \ No newline at end of file diff --git a/recordGenerators/TideForecast.py b/recordGenerators/TideForecast.py index d358190..e36230f 100644 --- a/recordGenerators/TideForecast.py +++ b/recordGenerators/TideForecast.py @@ -83,7 +83,7 @@ async def makeRecord(): file = "./.temp/TidesForecast.gz" command = '' - await loop.run_in_executor(bit.sendFile([file], [command], 1, 0)) + await loop.run_in_executor(None, bit.sendFile([file], [command], 1, 0)) remove('./.temp/TidesForecast.i2m') remove('./.temp/TidesForecast.gz') \ No newline at end of file diff --git a/recordGenerators/WateringNeeds.py b/recordGenerators/WateringNeeds.py index e464f0e..4f5c586 100644 --- a/recordGenerators/WateringNeeds.py +++ b/recordGenerators/WateringNeeds.py @@ -73,7 +73,7 @@ async def makeRecord(): file = "./.temp/WateringNeeds.gz" command = '' - await loop.run_in_executor(bit.sendFile([file], [command], 1, 0)) + await loop.run_in_executor(None, bit.sendFile([file], [command], 1, 0)) remove('./.temp/WateringNeeds.i2m') remove('./.temp/WateringNeeds.gz') \ No newline at end of file