mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-09 12:35:48 +01:00
- get_review_list: only consider requests which are in state review
This fixes a bug which was introduced in commit e65bd21c3b4c61d0d786e3173f024f9f20eb7fe9
This commit is contained in:
parent
5703b90ca1
commit
2372439b00
@ -3616,7 +3616,7 @@ def get_review_list(apiurl, project='', package='', byuser='', bygroup='', bypro
|
|||||||
xpath = xpath_join(xpath, 'review/@state=\'%s\'' % state, inner=True)
|
xpath = xpath_join(xpath, 'review/@state=\'%s\'' % state, inner=True)
|
||||||
if byuser or bygroup or bypackage or byproject:
|
if byuser or bygroup or bypackage or byproject:
|
||||||
# discard constructed xpath...
|
# discard constructed xpath...
|
||||||
xpath = ''
|
xpath = xpath_join('', 'state/@name=\'review\'', inner=True)
|
||||||
if byuser:
|
if byuser:
|
||||||
xpath = build_by(xpath, '@by_user=\'%s\'' % byuser)
|
xpath = build_by(xpath, '@by_user=\'%s\'' % byuser)
|
||||||
if bygroup:
|
if bygroup:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user