Skip to content

Commit

Permalink
Removing hits calculation for issue CTFd#12
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdHeat committed Jan 19, 2015
1 parent 3b93a40 commit 8ec79d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions CTFd/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ def admin_stats():
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]
Expand All @@ -395,7 +394,6 @@ def admin_stats():
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,
Expand Down
1 change: 0 additions & 1 deletion templates/admin/statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8ec79d9

Please sign in to comment.