Fix variable name conflict in admin config

- Rename 'flash' variable to 'flash_enabled' to avoid shadowing the flash() function
- Resolve TypeError when saving admin configuration
parent 2c7ae960
...@@ -357,8 +357,8 @@ def config(): ...@@ -357,8 +357,8 @@ def config():
ffmpeg = request.form.get('ffmpeg') == 'on' ffmpeg = request.form.get('ffmpeg') == 'on'
set_ffmpeg(ffmpeg) set_ffmpeg(ffmpeg)
flash = request.form.get('flash') == 'on' flash_enabled = request.form.get('flash') == 'on'
set_flash(flash) set_flash(flash_enabled)
# RunPod Settings # RunPod Settings
runpod_enabled = request.form.get('runpod_enabled') == 'on' runpod_enabled = request.form.get('runpod_enabled') == 'on'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment