chore(release): 0.6.0 #14
@@ -124,6 +124,11 @@ class BackendServer:
|
||||
def _save_known_clients(self) -> None:
|
||||
"""Save the list of known clients to a YAML file."""
|
||||
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)
|
||||
self.logger.debug("Saved known clients")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user