diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-03-07 08:24:44 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-03-07 08:24:44 +0100 |
commit | b3d4bbae6fa2810daf3481d8ba99675ffe3bce9e (patch) | |
tree | b3315876e6eb444e42518cf437c891720c4818d8 /webapp.py | |
parent | 5b5cf7f2629c3a6c78f6057ff1e8476ff001409f (diff) | |
download | debian-dedup-b3d4bbae6fa2810daf3481d8ba99675ffe3bce9e.tar.gz |
integrate the source table into the package table
Diffstat (limited to 'webapp.py')
-rwxr-xr-x | webapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |