# TODO: Use QA workflow flag to get successful or failed SUBs, instead of SUBs' states.
# TODO: Use QA workflow flag to get successful or failed SUBs, instead of SUBs' states.
# At the moment just return some 0 placeholder values.
# At the moment just return some 0 placeholder values.
# total_succeeded_per_day += s.duration.total_seconds() if s.start_time.date() in days and s.stop_time.date() in days and s.state == 'finished' else 0
# total_succeeded_per_day += sub.observed_duration.total_seconds() if sub.observed_duration and sub.observed_start_time.date() in days and sub.observed_end_time.date() in days and sub.status == 'finished' else 0