refactor: expand runtime contracts and debt ratchets

This commit is contained in:
jxxghp
2026-08-22 08:25:36 +08:00
parent 820f7e8850
commit 5d9c6c8b19
37 changed files with 883 additions and 339 deletions
+1 -3
View File
@@ -4,7 +4,7 @@ from sqlalchemy import Float, Index, Integer, String, delete, select
from sqlalchemy.orm import Mapped, Session, mapped_column
from app.db.base import Base, execute_dml, get_id_column
from app.db.decorators import db_query, db_update
from app.db.decorators import db_update
from app.db.models._constraints import media_identity_constraint
@@ -62,7 +62,6 @@ class DownloadFailure(Base):
)
@classmethod
@db_query
def get_active_by_fingerprints(
cls,
db: Session,
@@ -81,7 +80,6 @@ class DownloadFailure(Base):
).scalars().all())
@classmethod
@db_update
def record_failure(
cls,
db: Session,