Fixed bug in returning clip image embed to actually return it

This commit is contained in:
Jaret Burkett
2024-10-03 10:49:09 -06:00
parent 67e0aca750
commit 28e6f00790

View File

@@ -752,8 +752,7 @@ class ClipImageFileItemDTOMixin:
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