modified: app.py
This commit is contained in:
4
app.py
4
app.py
@@ -339,14 +339,14 @@ def logout():
|
|||||||
def start():
|
def start():
|
||||||
if is_bot_admin():
|
if is_bot_admin():
|
||||||
start_bot()
|
start_bot()
|
||||||
return redirect(url_for("admin_dashboard"))
|
return redirect(url_for("global_admin_dashboard"))
|
||||||
return redirect(url_for("landing_page"))
|
return redirect(url_for("landing_page"))
|
||||||
|
|
||||||
@app.route("/stop_bot")
|
@app.route("/stop_bot")
|
||||||
def stop():
|
def stop():
|
||||||
if is_bot_admin():
|
if is_bot_admin():
|
||||||
stop_bot()
|
stop_bot()
|
||||||
return redirect(url_for("admin_dashboard"))
|
return redirect(url_for("global_admin_dashboard"))
|
||||||
return redirect(url_for("landing_page"))
|
return redirect(url_for("landing_page"))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user