1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- get_review_list: only consider requests which are in state review

This fixes a bug which was introduced in
commit e65bd21c3b
This commit is contained in:
Marcus Huewe 2012-04-27 00:27:31 +02:00
parent 5703b90ca1
commit 2372439b00

View File

@ -3616,7 +3616,7 @@ def get_review_list(apiurl, project='', package='', byuser='', bygroup='', bypro
xpath = xpath_join(xpath, 'review/@state=\'%s\'' % state, inner=True)
if byuser or bygroup or bypackage or byproject:
# discard constructed xpath...
xpath = ''
xpath = xpath_join('', 'state/@name=\'review\'', inner=True)
if byuser:
xpath = build_by(xpath, '@by_user=\'%s\'' % byuser)
if bygroup: