Skip to content

Commit

Permalink
Fix: Include requested reports in task_running_report
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier committed May 2, 2023
2 parents d852658 + 46c7c65 commit 13f3df9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -17884,8 +17884,10 @@ task_running_report (task_t task)
return (unsigned int) sql_int ("SELECT max(id) FROM reports"
" WHERE task = %llu AND end_time IS NULL"
" AND (scan_run_status = %u "
" OR scan_run_status = %u "
" OR scan_run_status = %u);",
task,
TASK_STATUS_REQUESTED,
TASK_STATUS_RUNNING,
TASK_STATUS_QUEUED);
}
Expand Down

0 comments on commit 13f3df9

Please sign in to comment.