mirror of https://github.com/JohnHammond/CTFd.git
Removing hits calculation for issue #12
parent
3b93a40f2b
commit
8ec79d9337
|
@ -385,7 +385,6 @@ def init_admin(app):
|
|||
db.session.commit()
|
||||
|
||||
teams_registered = db.session.query(db.func.count(Teams.id)).first()[0]
|
||||
site_hits = db.session.query(db.func.count(Tracking.id)).first()[0]
|
||||
wrong_count = db.session.query(db.func.count(WrongKeys.id)).first()[0]
|
||||
solve_count = db.session.query(db.func.count(Solves.id)).first()[0]
|
||||
challenge_count = db.session.query(db.func.count(Challenges.id)).first()[0]
|
||||
|
@ -395,7 +394,6 @@ def init_admin(app):
|
|||
db.session.close()
|
||||
|
||||
return render_template('admin/statistics.html', team_count=teams_registered,
|
||||
hit_count=site_hits,
|
||||
wrong_count=wrong_count,
|
||||
solve_count=solve_count,
|
||||
challenge_count=challenge_count,
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<h1>Statistics</h1>
|
||||
|
||||
<h3><b>{{ team_count }}</b> teams registered</h3>
|
||||
<h3><b>{{ hit_count}}</b> hits</h3>
|
||||
<h3><b>{{ wrong_count }}</b> wrong keys submitted</h3>
|
||||
<h3><b>{{ solve_count }}</b> right keys submitted</h3>
|
||||
<h3><b>{{ challenge_count }}</b> challenges</h3>
|
||||
|
|
Loading…
Reference in New Issue