diff display_issues_demo.py @ 7:99e2e0e17103

Adding possibility and example to filter the entries.
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 01 Dec 2015 09:02:35 +0100
parents 99c68ebfb3b9
children 149d01f43e31
line wrap: on
line diff
--- a/display_issues_demo.py	Tue Dec 01 09:01:52 2015 +0100
+++ b/display_issues_demo.py	Tue Dec 01 09:02:35 2015 +0100
@@ -18,4 +18,6 @@
 cgitb.enable() # (optional) HTML traceback to browser
 print("Content-Type: text/html")
 print()
-render_db_stats_as_html(rcd.DATABASE_DEMO, rcd.SELECT_ALL)
+#render_db_stats_as_html(rcd.DATABASE_DEMO, rcd.SELECT_ALL)
+render_db_stats_as_html(rcd.DATABASE_DEMO,
+            rcd.SELECT_WHERE.format("timestamp > date('now', '-2 month')"))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)