comparison modules/web_view/display_issues_techintern.py @ 45:8449509b7f6f

Limit time frame of graph Requires roundup_cc ≥ 99e2e0e17103.
author Gernot Schulz <gernot@intevation.de>
date Sun, 31 Jan 2016 15:32:35 +0100
parents 2e2981af7d2d
children ba41c0fbd6e7
comparison
equal deleted inserted replaced
44:b47fc5eb9e01 45:8449509b7f6f
25 graph = os.path.dirname(os.path.realpath(__file__)) + '/bottledash_graph.html' 25 graph = os.path.dirname(os.path.realpath(__file__)) + '/bottledash_graph.html'
26 26
27 def get_chart(target_div_name): 27 def get_chart(target_div_name):
28 html_string = compile_db_stats_html( 28 html_string = compile_db_stats_html(
29 rcd.DATABASE_TECH_INTERN, 29 rcd.DATABASE_TECH_INTERN,
30 rcd.SELECT_ALL, 30 rcd.SELECT_WHERE.format("timestamp > date('now', '-2 month')"),
31 graph 31 graph
32 ) 32 )
33 33
34 html_string = html_string.replace( 34 html_string = html_string.replace(
35 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";') 35 'var d3jsInjectionTarget="X";', 'var d3jsInjectionTarget="' + target_div_name + '";')
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)