Toya0421 commited on
Commit
aef5fd9
·
verified ·
1 Parent(s): 1d4a481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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%S")
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: