bernhard@3: #!/usr/bin/env python3 bernhard@3: bernhard@3: """ Fetch issues from a roundup-tracker and save them in a databse. bernhard@3: bernhard@3: author: Sascha L. Teichmann bernhard@3: author: Bernhard Reiter bernhard@3: author: Sean Engelhardt bernhard@3: bernhard@3: (c) 2010,2015 by Intevation GmbH bernhard@3: bernhard@3: This is Free Software unter the terms of the bernhard@3: GNU GENERAL PUBLIC LICENSE Version 3 or later. bernhard@3: See http://www.gnu.org/licenses/gpl-3.0.txt for details bernhard@3: """ bernhard@3: bernhard@3: from display_issues import * bernhard@3: bernhard@3: cgitb.enable() # (optional) HTML traceback to browser bernhard@3: print("Content-Type: text/html") bernhard@3: print() bernhard@7: #render_db_stats_as_html(rcd.DATABASE_DEMO, rcd.SELECT_ALL) bernhard@7: render_db_stats_as_html(rcd.DATABASE_DEMO, bernhard@7: rcd.SELECT_WHERE.format("timestamp > date('now', '-2 month')"))