Toya0421 commited on
Commit
d4e8635
·
verified ·
1 Parent(s): a985d73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"logs_{ts}.csv")
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())