diff options
author | Sean Finney <seanius@debian.org> | 2008-09-08 23:09:13 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-09-08 23:09:13 +0200 |
commit | b370e84251843a65df5fefa9f2b72ebf4c8f55c0 (patch) | |
tree | d18c5216e9361c3e1f038b7b78c1618a36ea2086 | |
parent | c23a018c544320e053cf4a934906e3e61b9679d4 (diff) | |
download | patch-tracker-b370e84251843a65df5fefa9f2b72ebf4c8f55c0.tar.gz |
two maintainer email fixes
-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) |