Mercurial > roundup-cc > roundup-cc
view display_issues_demo.py @ 19:8ffd584065a4
TODO: add task to make display part more dynamic
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Mon, 09 Jul 2018 14:49:44 +0200 |
parents | adca5b3780d2 |
children | 3bb3d9a9f1b7 |
line wrap: on
line source
#!/usr/bin/env python3 """ Fetch issues from a roundup-tracker and save them in a databse. author: Sascha L. Teichmann <sascha.teichmann@intevation.de> author: Bernhard Reiter <bernhard@intevation.de> author: Sean Engelhardt <sean.engelhardt@intevation.de> (c) 2010, 2015, 2018 by Intevation GmbH This is Free Software unter the terms of the GNU GENERAL PUBLIC LICENSE Version 3 or later. See http://www.gnu.org/licenses/gpl-3.0.txt for details """ from display_issues import * cgitb.enable() # (optional) HTML traceback to browser #render_db_stats_as_html("./demo1.db", rcd.SELECT_ALL) render_db_stats_as_html("./demo1.db", rcd.SELECT_WHERE.format("timestamp > date('now', '-2 month')"))