eighth commit

This commit is contained in:
enrilinux
2026-03-10 18:14:21 +01:00
parent d6d885e5c4
commit 7c08af0fb3
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -21,6 +21,10 @@ if not os.path.exists(HISTORY_FILE):
with open(HISTORY_FILE, "w") as f:
json.dump([], f)
def write_log(message):
with open(LOG_FILE, "a") as f:
f.write(f"{datetime.now().strftime('%H:%M:%S')} - {message}\n")
@app.get("/", response_class=HTMLResponse)
async def home(request: Request):