From c2a189012b2264070a4c765ab567277075996ab4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 25 Sep 2022 05:21:41 +0200 Subject: [PATCH] redirect instead of rendering --- files/routes/static.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 8695e36da..11d26af1f 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -518,8 +518,7 @@ if SITE == 'pcmemes.net' or True: except: print(id, flush=True) - - return render_template('live.html', v=v, live=live, offline=offline, msg="Channel added successfuly!") + return redirect('/live') @app.post('/live/remove') @admin_level_required(2) @@ -541,4 +540,4 @@ if SITE == 'pcmemes.net' or True: cache.set('live', live) cache.set('offline', offline) - return render_template('live.html', v=v, live=live, offline=offline, msg="Channel removed successfuly!") \ No newline at end of file + return redirect('/live') \ No newline at end of file