forked from rDrama/rDrama
fix prev commit
parent
f7ba86b262
commit
29750ced42
|
@ -139,7 +139,8 @@ def sidebar(v):
|
||||||
def participation_stats(v):
|
def participation_stats(v):
|
||||||
stats = cache.get('stats')
|
stats = cache.get('stats')
|
||||||
if not stats:
|
if not stats:
|
||||||
cache.set('stats', stats.stats(), timeout=172800)
|
stats = statshelper.stats()
|
||||||
|
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", data=stats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue