forked from rDrama/rDrama
change variable and fix time
parent
29750ced42
commit
7f3ad289c1
|
@ -142,7 +142,7 @@ def participation_stats(v):
|
||||||
stats = statshelper.stats()
|
stats = statshelper.stats()
|
||||||
cache.set('stats', stats, timeout=172800)
|
cache.set('stats', stats, timeout=172800)
|
||||||
if v.client: return stats
|
if v.client: return stats
|
||||||
return render_template("stats.html", v=v, title="Statistics", data=stats)
|
return render_template("stats.html", v=v, title="Statistics", stats=stats)
|
||||||
|
|
||||||
@app.get("/chart")
|
@app.get("/chart")
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
<th class="disable-sort-click">Value</th>
|
<th class="disable-sort-click">Value</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for key, value in data.items() %}
|
{% for key, value in stats.items() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{key}}</td>
|
<td>{{key}}</td>
|
||||||
{% if key == 'time' -%}
|
{% if key == 'Time these stats were collected' -%}
|
||||||
<td data-time="{{value}}"></td>
|
<td data-time="{{value}}"></td>
|
||||||
{% else -%}
|
{% else -%}
|
||||||
<td>{{value}}</td>
|
<td>{{value}}</td>
|
||||||
|
|
Loading…
Reference in New Issue