def generate_code(): sid = request.form["sid"] db.regenerate_display_id(sid) return redirect("/col/" + sid)
def generate_code(): sid = request.form['sid'] db.regenerate_display_id(sid) return redirect('/col/' + sid)