From 28e6f00790e05cfd8acaaee190b436b74713709c Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Thu, 3 Oct 2024 10:49:09 -0600 Subject: [PATCH] Fixed bug in returning clip image embed to actually return it --- toolkit/dataloader_mixins.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolkit/dataloader_mixins.py b/toolkit/dataloader_mixins.py index 946c3d27..87e0679b 100644 --- a/toolkit/dataloader_mixins.py +++ b/toolkit/dataloader_mixins.py @@ -752,8 +752,7 @@ def get_new_clip_image_path(self: 'FileItemDTO'): if len(img_files) > 1: img_files.remove(self.path) # randomly grab one - self.clip_image_path = random.choice(img_files) - return self.path + return random.choice(img_files) else: return self.clip_image_path