redirect instead of rendering

master
Aevann1 2022-09-25 05:21:41 +02:00
parent 0ec2b10d32
commit c2a189012b
1 changed files with 2 additions and 3 deletions

View File

@ -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!")
return redirect('/live')