updates UI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user