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:
Kevin Chung
2017-10-14 16:37:41 -04:00
committed by GitHub
parent b4bdef966c
commit 6117699260
16 changed files with 115 additions and 27 deletions

View File

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