refactor: rename variable task to songId
This commit is contained in:
1 parent
6595eed927
commit
203bab6cf7
2 files changed
+4
-4
No files matched your search
@@ -322,10 +322,10 @@ def admin_list():
|
||||
songs = load_songs_list()
|
||||
return render_template("admin_tasksList.html", songs=songs)
|
||||
|
||||
@bp.route("/admin/add/<task>")
|
||||
@bp.route("/admin/add/<songId>")
|
||||
@admin_required
|
||||
def admin_add_task(task):
|
||||
print(task)
|
||||
def admin_add_task(songId):
|
||||
print(songId)
|
||||
return render_template("admin_add_task.html")
|
||||
|
||||
@bp.route("/api/admin/add", methods=["POST"])
|
||||
|
||||
Reference in new issue
Block a user