eighth commit
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -36,7 +36,7 @@ Download
|
||||
<div class="mt-6">
|
||||
<h2 class="text-lg font-semibold mb-2 text-center">History</h2>
|
||||
<div id="history" class="text-sm space-y-2 max-h-48 overflow-y-auto bg-gray-700 p-4 rounded"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user