diff --git a/app/main.py b/app/main.py index 412932a..b9e2687 100644 --- a/app/main.py +++ b/app/main.py @@ -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): diff --git a/app/templates/index.html b/app/templates/index.html index d5a85ec..9b9dcb1 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -36,7 +36,7 @@ Download

History

-
+