2 Commits

2 changed files with 3 additions and 3 deletions

0
config/.gitkeep Normal file
View File

View File

@@ -77,7 +77,7 @@ class BackendServer:
known_clients: dict[str, dict[str, str | float]] = {}
try:
with open("cache/known_clients.yaml", "r") as f:
with open("config/known_clients.yaml", "r") as f:
data = yaml.safe_load(f)
if not isinstance(data, dict):
@@ -114,7 +114,7 @@ class BackendServer:
self.logger.warning(
"known_clients.yaml not found, creating empty known clients list"
)
with open("cache/known_clients.yaml", "w") as f:
with open("config/known_clients.yaml", "w") as f:
yaml.safe_dump({"known_clients": {}}, f)
except Exception as e:
self.logger.error(f"Error loading known clients: {e}")
@@ -124,7 +124,7 @@ class BackendServer:
def _save_known_clients(self) -> None:
"""Save the list of known clients to a YAML file."""
with open("cache/known_clients.yaml", "w") as f:
with open("config/known_clients.yaml", "w") as f:
yaml.safe_dump({"known_clients": self.known_clients}, f)
self.logger.debug("Saved known clients")