forked from arti/doors
Merge branch 'implementAddingNewKeycards' of dos4dev/doors into master
LGTM
This commit is contained in:
commit
d1d673bf7c
@ -139,6 +139,14 @@ def info(db, user_id):
|
||||
return {**user, "keycards": keycards}
|
||||
|
||||
|
||||
@app.post("/info/<user_id>")
|
||||
def add_key_card(db, user_id):
|
||||
card_name = request.forms.get("name")
|
||||
card_uid = request.forms.get("uid")
|
||||
db.add_keycard(user_id, card_uid, card_name)
|
||||
redirect("/info/" + user_id)
|
||||
|
||||
|
||||
@app.route("/log")
|
||||
@view("log.html")
|
||||
def log(db):
|
||||
|
Loading…
Reference in New Issue
Block a user