make key appear in flash if making a single key

This commit is contained in:
Aaron Kimbre
2022-04-04 18:10:17 -05:00
parent 8e58b0bc1f
commit 33d24745e1
2 changed files with 3 additions and 2 deletions

View File

@@ -114,6 +114,7 @@ class PlayKey(db.Model):
)
db.session.add(new_key)
db.session.commit()
return key
def delete(self):
db.session.delete(self)