US07-07: Automate Full Release Acceptance (#94)

This commit was merged in pull request #94.
This commit is contained in:
2026-08-17 23:05:52 +02:00
parent 05f34cdda2
commit 74f4b1b640
11 changed files with 1196 additions and 4 deletions

View File

@@ -294,6 +294,7 @@ class SafetyService:
exif_verified_at = None
result_sha256 = None
result_byte_size = None
if write_exif and decision in (SFW, NSFW) and path:
ops = exif_projection(decision)
# The full checkpoint: write the owned keyword, read the whole file back,
@@ -314,6 +315,7 @@ class SafetyService:
if result.verified:
exif_verified_at = result.verified_at
result_sha256 = result.sha256
result_byte_size = result.byte_size
now = _now()
with self._session_factory() as session:
@@ -332,6 +334,8 @@ class SafetyService:
if result_sha256:
asset = session.get(Asset, asset_id)
asset.current_sha256 = result_sha256
if result_byte_size is not None:
asset.byte_size = result_byte_size
session.commit()
return {
"asset_id": asset_id,