We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/cluster_id/images
1 parent 411b9c5 commit af101d2Copy full SHA for af101d2
1 file changed
backend/app/database/face_clusters.py
@@ -299,19 +299,20 @@ def db_get_images_by_cluster_id(
299
bbox_json,
300
) = row
301
302
+ import json
303
+
304
+ metadata_dict = json.loads(metadata) if metadata else None
305
# Parse bbox JSON if it exists
306
bbox = None
307
if bbox_json:
- import json
-
308
bbox = json.loads(bbox_json)
309
310
images.append(
311
{
312
"image_id": image_id,
313
"image_path": image_path,
314
"thumbnail_path": thumbnail_path,
- "metadata": metadata,
315
+ "metadata": metadata_dict,
316
"face_id": face_id,
317
"confidence": confidence,
318
"bbox": bbox,
0 commit comments