Clarified time periods for graphs and use one less unneeded graph.

This commit is contained in:
A. Svensson 2015-05-21 18:11:09 +02:00
parent ff9e202df6
commit e1a0eec442
2 changed files with 9 additions and 3 deletions

View File

@ -53,7 +53,8 @@ func main() {
err := rows.Scan(&id, &title)
checkerror(err)
createtimegraph(db, "week-time-", id, title, LAST_WEEK)
createweekdaygraph(db, "week-avg_day-", id, title, LAST_WEEK)
createtimegraph(db, "month-time-", id, title, LAST_MONTH)
createweekdaygraph(db, "month-avg_day-", id, title, LAST_MONTH)
}
err = rows.Err()
checkerror(err)

View File

@ -53,11 +53,16 @@
</tr>
</table>
<h3>Weekly history</h3>
<h3>History</h3>
<img src="{% static 'graphs/' %}week-time-{{graph_file}}.png" />
<b>Last week</b>
<br />
<img src="{% static 'graphs/' %}month-time-{{graph_file}}.png" />
<b>Last month</b>
<h3>Average per day</h3>
<img src="{% static 'graphs/' %}week-avg_day-{{graph_file}}.png" />
<img src="{% static 'graphs/' %}month-avg_day-{{graph_file}}.png" />
<b>Last month</b>
{% endblock %}