From 90da5d231eff6a4249bef5468fcdbf1ebcf9247a Mon Sep 17 00:00:00 2001 From: Dale Wahl Date: Thu, 13 Jun 2024 10:25:24 +0200 Subject: [PATCH] image_cat_wall fix the fix --- processors/visualisation/image_category_wall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processors/visualisation/image_category_wall.py b/processors/visualisation/image_category_wall.py index ec9b5715a..251860ae9 100644 --- a/processors/visualisation/image_category_wall.py +++ b/processors/visualisation/image_category_wall.py @@ -187,10 +187,10 @@ def process(self): # Map post IDs to filenames if image_dataset.type == "video-hasher-1": # We know the post ID is the filename.stem as this dataset is derived from the image dataset - filename_map = {filename.stem + ".mp4": filename for filename in staging_area.iterdir()} + filename_map = {filename.stem + ".mp4": [filename] for filename in staging_area.iterdir()} elif special_case: # We know the post ID is the filename.stem as this dataset is derived from the image dataset - filename_map = {filename.stem: filename for filename in staging_area.iterdir()} + filename_map = {filename.stem: [filename] for filename in staging_area.iterdir()} else: # Use image metadata to map post IDs to filenames with open(staging_area.joinpath('.metadata.json')) as file: