mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
Closes #169
Changed the /chals/colves endpoint and associated javascript to index solves by challenge id rather than by challenge name Closes (#169)
This commit is contained in:
committed by
Kevin Chung
parent
4f4d6cae22
commit
22f57751e0
@@ -74,7 +74,7 @@ def chals_per_solves():
|
||||
.join(Challenges, solves_sub.columns.chalid == Challenges.id).all()
|
||||
json = {}
|
||||
for chal, count, name in solves:
|
||||
json[name] = count
|
||||
json[chal] = count
|
||||
db.session.close()
|
||||
return jsonify(json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user