updated pages

This commit is contained in:
2025-07-16 16:08:40 +03:00
parent 94fad22d85
commit f075cdf871
12 changed files with 1808 additions and 26 deletions

View File

@@ -3,11 +3,15 @@ Logging utilities for server actions
"""
import datetime
import pytz
from flask import request
from flask_login import current_user
from app.extensions import db
from app.models.server_log import ServerLog
# Get local timezone
LOCAL_TZ = pytz.timezone('Europe/Bucharest') # Adjust this to your local timezone
def log_action(action, level='INFO', user_id=None, ip_address=None, user_agent=None):
"""
Log an action to the server log database