mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
General fixes and PEP8 enforcement (#258)
* Fixing index page links when you deploy on a subdirectory * Updating travis for pep8 * autopep8 with just formatting changes
This commit is contained in:
@@ -106,6 +106,7 @@ def gen_solve(db, chalid, teamid, ip='127.0.0.1', flag='rightkey'):
|
||||
db.session.commit()
|
||||
return solve
|
||||
|
||||
|
||||
def gen_wrongkey(db, teamid, chalid, flag='wrongkey'):
|
||||
wrongkey = WrongKeys(teamid, chalid, flag)
|
||||
db.session.add(wrongkey)
|
||||
@@ -117,4 +118,4 @@ def gen_tracking(db, ip, team):
|
||||
tracking = Tracking(ip, team)
|
||||
db.session.add(tracking)
|
||||
db.session.commit()
|
||||
return tracking
|
||||
return tracking
|
||||
|
||||
Reference in New Issue
Block a user