update for log files viewer
This commit is contained in:
@@ -292,6 +292,7 @@ def admin_logs(date=None):
|
||||
date = datetime.now().strftime('%d')
|
||||
|
||||
today = datetime.now().strftime('%Y-%m') # ← Hier definieren!
|
||||
current_month = datetime.now().strftime('%Y-%m')
|
||||
|
||||
log_dir = os.path.join(LOG_DIR, today)
|
||||
|
||||
@@ -322,7 +323,7 @@ def admin_logs(date=None):
|
||||
logs=log_content,
|
||||
date=date,
|
||||
dates=dates,
|
||||
today=today) # ← Hier mit übergeben!
|
||||
today=current_month)
|
||||
|
||||
|
||||
@app.route('/configs/<path:filename>')
|
||||
|
||||
Reference in New Issue
Block a user