From d2f97cd3ef8b537c676dcc474ae1bd0ea3f9399c Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Fri, 7 Nov 2014 16:43:30 +0000 Subject: [PATCH] Return filesize and sha256sum too Signed-off-by: Mark Hymers --- dakweb/queries/source.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dakweb/queries/source.py b/dakweb/queries/source.py index d65283f6..298ee9dd 100644 --- a/dakweb/queries/source.py +++ b/dakweb/queries/source.py @@ -27,9 +27,11 @@ def dsc_in_suite(suite=None, source=None): q = q.filter(PoolFile.filename.endswith('.dsc')) ret = [] for p in q: - ret.append({'version': p.source.version, + ret.append({'version': p.source.version, 'component': p.poolfile.component.component_name, - 'filename': p.poolfile.filename}) + 'filename': p.poolfile.filename, + 'filesize': p.poolfile.filesize, + 'sha256sum': p.poolfile.sha256sum}) return json.dumps(ret) -- 2.39.5