summaryrefslogtreecommitdiff
path: root/webapp.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2020-10-07 16:48:12 +0200
committerHelmut Grohne <helmut@subdivi.de>2020-10-07 16:48:12 +0200
commit7b5da3c5b65ee5633c42616d3e6ca3f3c7d4785c (patch)
treea39213ffa79f2189f7fb85f13bff524b650aa140 /webapp.py
parenta52d12012b1befdf1f00d0fcd5101306c52271ff (diff)
downloadcrossqa-7b5da3c5b65ee5633c42616d3e6ca3f3c7d4785c.tar.gz
add build architecture to schema of builds table
Diffstat (limited to 'webapp.py')
-rw-r--r--webapp.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/webapp.py b/webapp.py
index cc9de37..3d3af0d 100644
--- a/webapp.py
+++ b/webapp.py
@@ -370,8 +370,7 @@ def collect_depstate(conn, source):
def show_index():
with db.engine.connect() as conn:
builds = list(conn.execute("""
- SELECT source, version, 'amd64' AS buildarch,
- architecture AS hostarch, starttime, filename,
+ SELECT source, version, buildarch, hostarch, starttime, filename,
ifnull((SELECT max(patched + 1) FROM bugs
WHERE affects = source),
0) AS buglvl
@@ -392,8 +391,7 @@ def show_source(source):
context["version"], context["depresult"] = collect_depstate(conn,
source)
query = sqlalchemy.text("""
- SELECT version, 'amd64' AS buildarch, architecture AS hostarch,
- success, starttime, filename
+ SELECT version, buildarch, hostarch, success, starttime, filename
FROM builds WHERE source = :source;""")
context["builds"] = list(conn.execute(query, source=source))
query = sqlalchemy.text("""