logic for list and argument passing is working
This commit is contained in:
@@ -36,7 +36,9 @@ def login():
|
||||
|
||||
@app.route("/list/<id>", methods=['GET'])
|
||||
def list(id):
|
||||
return render_template("list.html", id=id)
|
||||
get_user_record = db.user_info.find_one({"uuid": id},{"name": 1})
|
||||
full_name = get_user_record["name"]
|
||||
return render_template("list.html", full_name=full_name, id=id)
|
||||
|
||||
@app.errorhandler(404)
|
||||
def not_found(error):
|
||||
|
||||
Reference in New Issue
Block a user