Skip to content

Commit 175ee13

Browse files
Fix two settings not being saved
1 parent 04c7a92 commit 175ee13

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

cps/cwa_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ def set_cwa_settings():
660660
elif setting == "auto_convert_target_format":
661661
if value is None:
662662
value = cwa_db.cwa_settings['auto_convert_target_format']
663-
value = cwa_db.cwa_settings['auto_convert_target_format']
664663

665664
result |= {setting:value}
666665

@@ -798,7 +797,7 @@ def set_cwa_settings():
798797
return render_title_template("cwa_settings.html", title=_("Calibre-Web Automated User Settings"), page="cwa-settings",
799798
cwa_settings=cwa_settings, ignorable_formats=ignorable_formats, target_formats=target_formats,
800799
automerge_options=automerge_options, autoingest_options=autoingest_options,
801-
next_duplicate_scan_run=next_scan_run)
800+
next_duplicate_scan_run=next_scan_run, config=config)
802801

803802

804803
def get_next_duplicate_scan_run(settings):

cps/templates/cwa_settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ <h4 class="settings-section-header">{{_('Web UI Settings')}}</h4>
385385
{{_('When disabled, you will no longer receive notifications in the Web UI when using a language other than English if the translations for your chosen language are not complete.')}}
386386
</p>
387387

388-
{% if config.config_kobo_sync_magic_shelves %}
388+
{% if config['config_kobo_sync_magic_shelves'] %}
389389
<input type="checkbox" id="config_kobo_sync_magic_shelves" name="config_kobo_sync_magic_shelves" value="True" checked style="accent-color: var(--color-secondary);" data-toggle="tooltip" data-placement="right" title="Requires Kobo Sync to be enabled in Basic Configuration">
390390
{% else %}
391391
<input type="checkbox" id="config_kobo_sync_magic_shelves" name="config_kobo_sync_magic_shelves" value="True" style="accent-color: var(--color-secondary);" data-toggle="tooltip" data-placement="right" title="Requires Kobo Sync to be enabled in Basic Configuration">

0 commit comments

Comments
 (0)