mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Challenge team mode improvements (#1013)
* Sort solves in admin challenge view by date * Link to appropriate user and challenge in team, user, and challenge pages
This commit is contained in:
@@ -22,7 +22,11 @@ def challenges_detail(challenge_id):
|
||||
Challenges.query.with_entities(Challenges.id, Challenges.name).all()
|
||||
)
|
||||
challenge = Challenges.query.filter_by(id=challenge_id).first_or_404()
|
||||
solves = Solves.query.filter_by(challenge_id=challenge.id).all()
|
||||
solves = (
|
||||
Solves.query.filter_by(challenge_id=challenge.id)
|
||||
.order_by(Solves.date.asc())
|
||||
.all()
|
||||
)
|
||||
flags = Flags.query.filter_by(challenge_id=challenge.id).all()
|
||||
challenge_class = get_chal_class(challenge.type)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user