fix: isolate metadata keys passed to admin settings template
Previously passed the entire runtime_settings dict as metadata, which could clobber/overlap email form fields. Now only artist/album/year/comment are passed.
This commit is contained in:
parent
d5d4882d07
commit
b6a0987236
1 changed files with 6 additions and 1 deletions
7
app.py
7
app.py
|
|
@ -1180,7 +1180,12 @@ def admin_settings():
|
||||||
current_refresh_seconds=current_refresh_seconds,
|
current_refresh_seconds=current_refresh_seconds,
|
||||||
booth_open=booth_open,
|
booth_open=booth_open,
|
||||||
email_form=email_form,
|
email_form=email_form,
|
||||||
metadata=runtime_settings,
|
metadata={
|
||||||
|
'artist': runtime_settings.get('artist', ''),
|
||||||
|
'album': runtime_settings.get('album', ''),
|
||||||
|
'year': runtime_settings.get('year', ''),
|
||||||
|
'comment': runtime_settings.get('comment', ''),
|
||||||
|
},
|
||||||
hermes_key_masked=hermes_key_masked,
|
hermes_key_masked=hermes_key_masked,
|
||||||
hermes_key_set=hermes_key_set,
|
hermes_key_set=hermes_key_set,
|
||||||
hermes_key_just_generated=hermes_key_just_generated,
|
hermes_key_just_generated=hermes_key_just_generated,
|
||||||
|
|
|
||||||
Reference in a new issue