Skip to content

Commit

Permalink
Config model refactoring #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Евгений Грозных authored and Евгений Грозных committed Sep 23, 2020
1 parent 33fd1eb commit ec974f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cfg/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def getConfigAsJson():
except FileNotFoundError as exc:
logFileNotFoundErrorAndReraise()

def getGlobalConfigSettingsNames(json_config):
return [setting_name for setting_name in json_config.keys()]
def representConfigValuesAsDict(json_config):
def getGlobalConfigSettingsNames(json_config):
return [setting_name for setting_name in json_config.keys()]

def getGlobalConfigValues(json_config):
return [config_value for config_value in json_config.values()]
def getGlobalConfigValues(json_config):
return [config_value for config_value in json_config.values()]

def representConfigValuesAsDict(config_settings_names, config_values):
return { k:v for k in config_settings_names for v in global_config_values }
return { k:v for k in getGlobalConfigSettingsNames(json_config) for v in getGlobalConfigValues(json_config) }


0 comments on commit ec974f0

Please sign in to comment.