diff options
-rw-r--r-- | patchtracker/DB.py | 2 | ||||
-rwxr-xr-x | patchtracker/SourceArchive.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/patchtracker/DB.py b/patchtracker/DB.py index b7a91ef..88d2886 100644 --- a/patchtracker/DB.py +++ b/patchtracker/DB.py @@ -99,7 +99,7 @@ class PatchTrackerDB: qargs += (version,) if email: q += " AND ( p.maintainer like ? OR p.uploaders like ? )" - qargs += (email,email) + qargs += ("%%%s%%"%(email),"%%%s%%"%(email)) cursor.execute(q, qargs) # use srcpkg_factory to fetch sourcepackages, once per suite diff --git a/patchtracker/SourceArchive.py b/patchtracker/SourceArchive.py index 1665a94..de7331c 100755 --- a/patchtracker/SourceArchive.py +++ b/patchtracker/SourceArchive.py @@ -110,9 +110,9 @@ class SourcePackage: self.maintainers = unicode(info['Maintainer'], 'latin-1') if info.has_key('Uploaders'): try: - self.uploaders = unicode(info['Maintainer']) + self.uploaders = unicode(info['Uploaders']) except UnicodeDecodeError: - self.uploaders = unicode(info['Maintainer'], 'latin-1') + self.uploaders = unicode(info['Uploaders'], 'latin-1') self.idx = getidx(self) |