fix: stamp published_at on release publish (was NULL)
This commit is contained in:
@@ -18,6 +18,7 @@ the exact same bytes again is a no-op (idempotent).
|
||||
import argparse
|
||||
import hashlib
|
||||
import sys
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
@@ -45,6 +46,7 @@ def publish(session, zip_path: Path, *, platform="windows", architecture="x64",
|
||||
dest.write_bytes(data)
|
||||
release = AgentRelease(version=version, platform=platform, architecture=architecture, filename=filename,
|
||||
size_bytes=len(data), sha256=digest, storage_path=filename, status="PUBLISHED",
|
||||
published_at=datetime.now(timezone.utc),
|
||||
release_notes=notes, created_by=created_by)
|
||||
session.add(release)
|
||||
session.commit()
|
||||
|
||||
Reference in New Issue
Block a user