feat(backend_server.py): add notice to known_clients.yaml

This commit is contained in:
2026-03-05 20:52:18 +01:00
parent efbf99f356
commit 72d51b451f

View File

@@ -124,6 +124,11 @@ class BackendServer:
def _save_known_clients(self) -> None: def _save_known_clients(self) -> None:
"""Save the list of known clients to a YAML file.""" """Save the list of known clients to a YAML file."""
with open("config/known_clients.yaml", "w") as f: with open("config/known_clients.yaml", "w") as f:
f.write(
"# This file is automatically generated by BackendServer.\n"
+ "# Do not edit manually.\n"
+ f"# Generated at: {time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())}\n\n"
)
yaml.safe_dump({"known_clients": self.known_clients}, f) yaml.safe_dump({"known_clients": self.known_clients}, f)
self.logger.debug("Saved known clients") self.logger.debug("Saved known clients")