Skip to content

Commit

Permalink
Merge pull request #770 from euphorie/scrum-2800-report-parked-risks
Browse files Browse the repository at this point in the history
Fix query for unanswered risks
  • Loading branch information
reinhardt authored Nov 21, 2024
2 parents e519a40 + 85cc602 commit cf61c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 3 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Changelog
- Action Plan: Strip HTML from comments
(`#2763 <https://github.com/syslabcom/scrum/issues/2763>`_)
[reinhardt]
- Report: Fix “parked” risks
(`#2800 <https://github.com/syslabcom/scrum/issues/2800>`_)
[reinhardt]


16.2.3 (2024-10-25)
Expand Down
10 changes: 3 additions & 7 deletions src/euphorie/client/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1909,13 +1909,9 @@ def _SKIPPED_MODULE_factory():

UNANSWERED_RISKS_FILTER = sql.and_(
SurveyTreeItem.type == "risk",
sql.exists(
sql.select([Risk.sql_risk_id]).where(
sql.and_(
Risk.sql_risk_id == SurveyTreeItem.id,
Risk.identification == None, # noqa: E711
)
)
sql.and_(
Risk.sql_risk_id == SurveyTreeItem.id,
Risk.identification == None, # noqa: E711
),
)

Expand Down

0 comments on commit cf61c5c

Please sign in to comment.