Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -329,7 +329,7 @@ def download_logs(admin_password):
|
|
| 329 |
|
| 330 |
# ✅ 変更点:DL用ファイル名を日付・時間付きにする(JST)
|
| 331 |
ts = (datetime.utcnow() + timedelta(hours=9)).strftime("%Y%m%d_%H%M")
|
| 332 |
-
out_path = os.path.join(tmp_dir, f"
|
| 333 |
|
| 334 |
with open(LOG_FILE, "rb") as fsrc, open(out_path, "wb") as fdst:
|
| 335 |
fdst.write(fsrc.read())
|
|
|
|
| 329 |
|
| 330 |
# ✅ 変更点:DL用ファイル名を日付・時間付きにする(JST)
|
| 331 |
ts = (datetime.utcnow() + timedelta(hours=9)).strftime("%Y%m%d_%H%M")
|
| 332 |
+
out_path = os.path.join(tmp_dir, f"test_logs_{ts}.csv")
|
| 333 |
|
| 334 |
with open(LOG_FILE, "rb") as fsrc, open(out_path, "wb") as fdst:
|
| 335 |
fdst.write(fsrc.read())
|