mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Use strings for key type (#409)
* Store key_type as string in the database * Give keys plugin the ability to know where the modals are stored and pass this information to the client
This commit is contained in:
@@ -222,7 +222,7 @@ if __name__ == '__main__':
|
||||
word = gen_word()
|
||||
db.session.add(Challenges(word, gen_sentence(), gen_value(), gen_category()))
|
||||
db.session.commit()
|
||||
db.session.add(Keys(x + 1, word, 0))
|
||||
db.session.add(Keys(x + 1, word, 'static'))
|
||||
db.session.commit()
|
||||
|
||||
# Generating Files
|
||||
|
||||
Reference in New Issue
Block a user