1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

- avoid type errors

This commit is contained in:
Marcus Hüwe 2009-02-18 10:22:06 +00:00
parent 85d53187cf
commit ab8ff4b8c2

View File

@ -2595,9 +2595,9 @@ def get_binarylist_published(apiurl, prj, repo, arch):
def show_results_meta(apiurl, prj, package=None, lastbuild=None):
query = None
query = {}
if package:
query = { 'package': package }
query['package'] = package
if lastbuild:
query['lastbuild'] = 1
u = makeurl(apiurl, ['build', prj, '_result'], query=query)