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