Skip to content

Commit 67df27a

Browse files
committed
Fix variable name and newline
1 parent f193f53 commit 67df27a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

integrations/acquisition/covidcast_nowcast/test_csv_uploading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ def test_duplicate_row(self):
151151
'signal': 'sig',
152152
}],
153153
'message': 'success',
154-
})
154+
})

src/acquisition/covidcast_nowcast/load_sensors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ def main(csv_path: str = SENSOR_CSV_PATH) -> None:
3636
"""
3737
user, pw = secrets.db.epi
3838
engine = sqlalchemy.create_engine(f"mysql+pymysql://{user}:{pw}@{secrets.db.host}/{DB_NAME}")
39-
for filepath, attr in CsvImporter.find_csv_files(csv_path):
40-
if attr is None:
39+
for filepath, attribute in CsvImporter.find_csv_files(csv_path):
40+
if attribute is None:
4141
_move_after_processing(filepath, success=False)
4242
continue
4343
try:
44-
data = load_and_prepare_file(filepath, attr)
44+
data = load_and_prepare_file(filepath, attribute)
4545
conn = engine.connect()
4646
with conn.begin():
4747
method = _create_upsert_method(sqlalchemy.MetaData(conn))

0 commit comments

Comments
 (0)