New #6484
openProblemy
0%
Description
query = f"""select h.harmonogram_id_pkey, hd.fill_database_logs[array_length(hd.fill_database_logs, 1)] AS fill_end
from kombajn.harmonogram h
left join kombajn.harmonogram_details hd on h.harmonogram_id_pkey = hd.harmonogram_id_fkey
where h.ship_id_fkey = (select ship_id_fkey
from kombajn.devices
where device_pkey = {device_id})
"""
dlaczego tutaj bierze fill database? i pozniej porównuje do daty wysłania:
for rc, row_series in df.iterrows():
if row_series.fill_end > meas_date:
return row_series.harmonogram_id_pkey
jak pojawi się fill_database to zawsze bedzie wieksza data meas_date bot to jest data wysłki jakby z logbooka?
kombajn_db_api QRGenerator.py linia ~139