summaryrefslogtreecommitdiff
path: root/webapp.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-03-07 08:24:44 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-03-07 08:24:44 +0100
commitb3d4bbae6fa2810daf3481d8ba99675ffe3bce9e (patch)
treeb3315876e6eb444e42518cf437c891720c4818d8 /webapp.py
parent5b5cf7f2629c3a6c78f6057ff1e8476ff001409f (diff)
downloaddebian-dedup-b3d4bbae6fa2810daf3481d8ba99675ffe3bce9e.tar.gz
integrate the source table into the package table
Diffstat (limited to 'webapp.py')
-rwxr-xr-xwebapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp.py b/webapp.py
index 6c06e28..0e4dc15 100755
--- a/webapp.py
+++ b/webapp.py
@@ -334,12 +334,12 @@ class Application(object):
def show_source(self, package):
cur = self.db.cursor()
- cur.execute("SELECT package FROM source WHERE source = ?;",
+ cur.execute("SELECT package FROM package WHERE source = ?;",
(package,))
binpkgs = dict.fromkeys(pkg for pkg, in fetchiter(cur))
if not binpkgs:
raise NotFound
- cur.execute("SELECT source.package, sharing.package2, sharing.func1, sharing.func2, sharing.files, sharing.size FROM source JOIN sharing ON source.package = sharing.package1 WHERE source.source = ?;",
+ cur.execute("SELECT package.package, sharing.package2, sharing.func1, sharing.func2, sharing.files, sharing.size FROM package JOIN sharing ON package.package = sharing.package1 WHERE package.source = ?;",
(package,))
for binary, otherbin, func1, func2, files, size in fetchiter(cur):
entry = dict(package=otherbin,