summaryrefslogtreecommitdiff
path: root/webapp.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-03-20 19:19:50 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-03-20 19:19:50 +0100
commit68cf124ab5fba5f96364925e09226db5c2bbf028 (patch)
treeb2ae244abacb0018925a60c98cd2c4561200194b /webapp.py
parent23d5ba7d2bcbfc285cd8e27a9af0bffdf0a98f05 (diff)
downloaddebian-dedup-68cf124ab5fba5f96364925e09226db5c2bbf028.tar.gz
webapp: report correct sizes
Diffstat (limited to 'webapp.py')
-rwxr-xr-xwebapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp.py b/webapp.py
index e234596..9ae34c2 100755
--- a/webapp.py
+++ b/webapp.py
@@ -240,7 +240,7 @@ class Application(object):
details = dict(package=package,
version=version,
architecture=architecture)
- cur.execute("SELECT count(filename), sum(size) FROM content WHERE package = ?;",
+ cur.execute("SELECT count(filename), sum(size) FROM content WHERE package = ? AND function = 'sha512';",
(package,))
num_files, total_size = cur.fetchone()
details.update(dict(num_files=num_files, total_size=total_size))