mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-14 00:06:15 +01: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:
commit
dc50e6c981
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user