webapp: fix problem from the previous merge
authorHelmut Grohne <helmut@subdivi.de>
Tue, 26 Mar 2013 15:23:37 +0000 (16:23 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Tue, 26 Mar 2013 15:23:37 +0000 (16:23 +0100)
webapp.py

index dc439a1..4ae9af5 100755 (executable)
--- 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 = ? AND function = 'sha512';",
+        cur.execute("SELECT count(filename), sum(size) FROM content WHERE package = ?;",
                     (package,))
         num_files, total_size = cur.fetchone()
         details.update(dict(num_files=num_files, total_size=total_size))