filter out cancelled shipcalls before timer error validation

This commit is contained in:
Daniel Schick 2025-01-10 13:28:12 +01:00
parent b36e2c9e05
commit 91caf74dca

View File

@ -39,6 +39,8 @@ def UpdateShipcalls(options:dict = {'past_days':2}):
query = create_sql_query_shipcall_get(options)
data = commands.query(query, model=model.Shipcall)
data = [s for s in data if not s.canceled] # filter out canceled shipcalls
# get the shipcall ids, which are of interest
shipcall_ids = [dat.id for dat in data]