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

put the states first for involved projects

before: 18s
after: 11s
(possibly it matters only if you have more than your home project
in the project list)
This commit is contained in:
Stephan Kulow 2010-03-15 13:15:50 +01:00
parent 88474d392d
commit 8c86d1fab3

View File

@ -2652,8 +2652,8 @@ def get_user_projpkgs_request_list(apiurl, user, req_state=('new',), req_type=No
if not 'all' in req_state:
xp = ''
for state in req_state:
xp = xpath_join(xp, 'state/@name=\'%s\'' % state)
xpath = xpath_join(xpath, '(%s)' % xp, op='and')
xp = xpath_join(xp, 'state/@name=\'%s\'' % state, inner=True)
xpath = xpath_join("(%s)" % xp, "(%s)" % xpath, op='and')
res = search(apiurl, request=xpath)
result = []
for root in res['request'].findall('request'):