mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Preventing Hints from being unlocked after the end of a CTF (#439)
* Preventing Hints from being unlocked after the end of a CTF unless challenges can be viewed
This commit is contained in:
@@ -95,6 +95,7 @@ def gen_challenge(db, name='chal_name', description='chal_description', value=10
|
||||
|
||||
def gen_award(db, teamid, name="award_name", value=100):
|
||||
award = Awards(teamid, name, value)
|
||||
award.date = datetime.datetime.utcnow()
|
||||
db.session.add(award)
|
||||
db.session.commit()
|
||||
return award
|
||||
|
||||
Reference in New Issue
Block a user