Skip to content

Commit

Permalink
Fix - in update configuration of addons
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean28518 committed Apr 18, 2024
1 parent f70aa55 commit 49e659c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lac/unix/unix_scripts/unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def get_software_modules():
addons = get_all_addon_modules()
for addon in addons:
addon["installed"] = is_module_installed(addon["id"])
addon["automaticUpdates"] = get_value(f"{addon['id'].upper()}_AUTOMATIC_UPDATES", "False") == "True"
addon["automaticUpdates"] = get_value(f"{addon['id'].upper().replace('-', '_')}_AUTOMATIC_UPDATES", "False") == "True"
addon["scriptsFolder"] = f"addons/{addon['id']}"
modules.append(addon)

Expand Down
2 changes: 1 addition & 1 deletion src/lac/unix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def set_update_configuration(request):
software_modules = unix.get_software_modules()
for module in software_modules:
key = module["id"]
configKey = key.upper() + "_AUTOMATIC_UPDATES"
configKey = key.upper().replace("-", "_") + "_AUTOMATIC_UPDATES"
if request.POST.get(key, "") == "on":
unix.set_value(configKey, "True")
else:
Expand Down

0 comments on commit 49e659c

Please sign in to comment.