New English meme and flyer set, retire Dutch-text gallery images

This commit is contained in:
2026-10-05 11:42:35 +02:00
parent ff547e1677
commit 1e16334a0e
30 changed files with 121 additions and 26 deletions
+9
View File
@@ -37,6 +37,15 @@ def upsert_media(filename, kind, caption, position, width, height, phash, thumb_
return fields["uid"]
def retire_media(filename):
existing = get_media_by_file(filename)
if not existing or existing.get("deleted_at"):
return False
stamp = now_iso()
db["media_items"].update({"id": existing["id"], "deleted_at": stamp, "deleted_by": "system", "updated_at": stamp}, ["id"])
return True
def count_media(kind=None):
if "media_items" not in db.tables:
return 0