Skip to content

Commit

Permalink
fix: updated variables from dir to path
Browse files Browse the repository at this point in the history
  • Loading branch information
ParadoxInfinite authored and a1ex4 committed Oct 15, 2024
1 parent 262d225 commit 522d52e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def add_library_path_to_settings(path):
success = False
errors.append({
'path': 'library/paths',
'error': f"Path {dir} does not exists."
'error': f"Path {path} does not exists."
})
else:
settings = load_settings()
Expand All @@ -70,7 +70,7 @@ def add_library_path_to_settings(path):
success = False
errors.append({
'path': 'library/paths',
'error': f"Path {dir} already configured."
'error': f"Path {path} already configured."
})
return success, errors
library_paths.append(path)
Expand All @@ -96,7 +96,7 @@ def delete_library_path_from_settings(path):
success = False
errors.append({
'path': 'library/paths',
'error': f"Path {dir} not configured."
'error': f"Path {path} not configured."
})
return success, errors

Expand All @@ -111,4 +111,4 @@ def set_shop_settings(data):
settings = load_settings()
settings['shop'] = data
with open(CONFIG_FILE, 'w') as yaml_file:
yaml.dump(settings, yaml_file)
yaml.dump(settings, yaml_file)

0 comments on commit 522d52e

Please sign in to comment.