1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-07 21:58:41 +02:00

Merge pull request #1319 from dmach/review-list-state

Consider only open requests when listing requests with a given review state
This commit is contained in:
2023-05-09 16:54:28 +02:00
committed by GitHub

View File

@@ -4722,9 +4722,11 @@ def get_review_list(
return ''
xpath = ''
# we're interested only in reviews of requests that are still open
xpath = xpath_join(xpath, "(state/@name='new' or state/@name='review' or state/@name='declined')", op="and")
if states == ():
# default: requests which are still open and have reviews in "new" state
xpath = xpath_join('', 'state/@name=\'review\'', op='and')
xpath = xpath_join(xpath, 'review/@state=\'new\'', op='and')
if byuser:
xpath = build_by(xpath, '@by_user=\'%s\'' % byuser)