feat: extend media roles and acceptance coverage
This commit is contained in:
@@ -192,6 +192,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
parser.add_argument("--decision", choices=("approved", "rejected"))
|
||||
parser.add_argument("--entity-type", choices=("fish", "waterbody", "tackle", "reference"))
|
||||
parser.add_argument("--entity-key")
|
||||
parser.add_argument("--media-role", help="Explicit reviewed role for waterbody/tackle media")
|
||||
parser.add_argument("--note")
|
||||
parser.add_argument("--audit", action="store_true", help="Verify manifest metadata, hashes and local files without network access")
|
||||
parser.add_argument("--coverage", action="store_true", help="Compare candidates and approvals with the catalog baseline")
|
||||
@@ -232,7 +233,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
if args.review_url:
|
||||
if not args.decision:
|
||||
parser.error("--decision is required with --review-url")
|
||||
item = review_asset(args.root / "manifest.json", asset_url=args.review_url, decision=args.decision, entity_type=args.entity_type, entity_key=args.entity_key, note=args.note)
|
||||
item = review_asset(args.root / "manifest.json", asset_url=args.review_url, decision=args.decision, entity_type=args.entity_type, entity_key=args.entity_key, note=args.note, media_role=args.media_role)
|
||||
print(f"{item['status']} {item['asset_url']}")
|
||||
return 0
|
||||
if args.reclassify:
|
||||
|
||||
Reference in New Issue
Block a user