Mercurial > roundup-cc > roundup-cc
comparison display_issues_demo.py @ 24:89469aa41fe1
Preliminary work to make the display more dynamic.
* The values are now dynamically read from the database and written to a
dynamic dict.
* If "None" (NoPrio) is not existent it is set to [0] because the JS expects a
value.
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Fri, 02 Nov 2018 17:06:45 +0100 |
parents | 7a523e13fcb3 |
children | 7161ce4e7ab1 |
comparison
equal
deleted
inserted
replaced
21:7a523e13fcb3 | 24:89469aa41fe1 |
---|---|
33 | 33 |
34 cgitb.enable() # (optional) HTML traceback to browser | 34 cgitb.enable() # (optional) HTML traceback to browser |
35 #render_db_stats_as_html("./demo1.db", rcd.SELECT_ALL) | 35 #render_db_stats_as_html("./demo1.db", rcd.SELECT_ALL) |
36 render_db_stats_as_html(db, | 36 render_db_stats_as_html(db, |
37 rcd.build_sql_select(columns).format("timestamp > date('now', '-2 month')"), | 37 rcd.build_sql_select(columns).format("timestamp > date('now', '-2 month')"), |
38 status, keywords) | 38 columns, status, keywords) |