updates UI

This commit is contained in:
mike
2026-06-30 01:07:54 +02:00
parent 61268de34b
commit ad9a2ae078
13 changed files with 1375 additions and 397 deletions

View File

@@ -539,3 +539,24 @@ def search_similar_face(embedding, limit=12, exclude_group_id=None):
finally:
cur.close()
_put_db_connection(conn)
def invalidate_all_metadata():
"""Reset metadata columns to NULL so they can be re-analyzed by the backfill worker."""
conn = get_db_connection()
cur = conn.cursor()
try:
cur.execute("""
UPDATE person
SET people_count = NULL,
anatomical_completeness = NULL,
facial_direction = NULL,
objects = NULL,
pose_description = NULL,
pose_skeleton = NULL
WHERE NOT (filename LIKE '_turntable/%')
""")
conn.commit()
finally:
cur.close()
_put_db_connection(conn)