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:
Kevin Chung
2017-11-08 02:13:07 -05:00
committed by GitHub
parent 6f4a520241
commit 117b43e3c5
3 changed files with 126 additions and 27 deletions

View File

@@ -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