Skip to content
Snippets Groups Projects
Commit 678fdfc0 authored by Jacques Grelet's avatar Jacques Grelet
Browse files

correction bug: f"SELECT {col} FROM data WHERE station_id = {i}")

parent 70860205
No related branches found
No related tags found
No related merge requests found
......@@ -60,9 +60,8 @@ def writeHeaderProfile(hdrFile, cfg, device, fe, r):
# get max value for each profile, DEPTH or PRES is the first value => keys[0]
col = f"MAX({fe.keys[0]})"
print(fe.keys[0], int(fe['PROFILE'][i]))
query = fe.db.query(
f"SELECT {col} FROM data WHERE station_id = {int(fe['PROFILE'][i])}")
f"SELECT {col} FROM data WHERE station_id = {i}")
for idx, item in enumerate(query):
dt = item[col]
if dt == None:
......
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