cur.execute(f"SELECT application, status, start_date, forecast_length, region, species, metric, emis_scen, creation_date, id FROM jobs WHERE user_id={user_id}")
data_rows_from_db=cur.fetchall()
cur.execute("SELECT job_status, id FROM convoc_status")
convoc_status_from_db=cur.fetchall()
conn.close()
convoc_status_dict=dict(convoc_status_from_db)
# if status != 'finished':
# use /p/project/cjicg21/schroeder5/Destine_AQ/SCRIPTS/ECFLOW/query_status.bash jobnr
# to determine the actual status
# ==> there should be a refresh, whenever this tab is reloaded!
forjobindata_rows_from_db:
job_status=job[1]
if (job_status==convoc_status_dict['active'])or(job_status==convoc_status_dict['waiting']):