debut changement vers google drive
CI - Security, Lint & Tests / validate (push) Failing after 1m14s

This commit is contained in:
cedrick2711
2026-08-25 19:01:28 -04:00
parent d18979a3e9
commit 38defc53a5
20 changed files with 796 additions and 520 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
"""Records of database backups created through the admin panel."""
from app.extensions import db
from datetime import datetime
from app.time_utils import utc_now_naive
class BackupRecord(db.Model):
@@ -16,6 +16,6 @@ class BackupRecord(db.Model):
backup_type = db.Column(db.String(20), default='manual') # 'manual' or 'auto'
notes = db.Column(db.Text, nullable=True)
created_by_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=True)
created_at = db.Column(db.DateTime, default=datetime.utcnow)
created_at = db.Column(db.DateTime, default=utc_now_naive)
creator = db.relationship('User', foreign_keys=[created_by_id], backref='backups')
creator = db.relationship('User', foreign_keys=[created_by_id], backref='backups')