Skip to content

Commit

Permalink
Oopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Jan 14, 2024
1 parent d41d654 commit 13638b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from yunohost.regenconf import regen_conf
from yunohost.firewall import firewall_reload
from yunohost.log import is_unit_operation
from yunohost.utils.legacy import translate_legacy_settings_to_configpanel_settings

if TYPE_CHECKING:
from typing import cast
Expand Down Expand Up @@ -71,7 +70,6 @@ def settings_get(key="", full=False, export=False):
mode = "classic"

settings = SettingsConfigPanel()
key = translate_legacy_settings_to_configpanel_settings(key)
return settings.get(key, mode)


Expand Down Expand Up @@ -100,7 +98,6 @@ def settings_set(operation_logger, key=None, value=None, args=None, args_file=No
"""
BaseOption.operation_logger = operation_logger
settings = SettingsConfigPanel()
key = translate_legacy_settings_to_configpanel_settings(key)
return settings.set(key, value, args, args_file, operation_logger=operation_logger)


Expand All @@ -115,7 +112,6 @@ def settings_reset(operation_logger, key):
"""

settings = SettingsConfigPanel()
key = translate_legacy_settings_to_configpanel_settings(key)
return settings.reset(key, operation_logger=operation_logger)


Expand Down

0 comments on commit 13638b0

Please sign in to comment.