Add admin panel
This commit is contained in:
@@ -249,8 +249,8 @@ def get_ssl_info(domain: str) -> Optional[dict]:
|
||||
return None
|
||||
|
||||
|
||||
def cleanup_old_metrics(days: int = 7):
|
||||
"""Delete metrics older than specified days."""
|
||||
def cleanup_old_metrics(days: int = 1):
|
||||
"""Delete metrics older than specified days (default: 24 hours)."""
|
||||
conn = get_connection()
|
||||
cursor = conn.cursor()
|
||||
cutoff = datetime.now() - timedelta(days=days)
|
||||
|
||||
Reference in New Issue
Block a user