Fixed bug in returning clip image embed to actually return it
This commit is contained in:
@@ -752,8 +752,7 @@ class ClipImageFileItemDTOMixin:
|
|||||||
if len(img_files) > 1:
|
if len(img_files) > 1:
|
||||||
img_files.remove(self.path)
|
img_files.remove(self.path)
|
||||||
# randomly grab one
|
# randomly grab one
|
||||||
self.clip_image_path = random.choice(img_files)
|
return random.choice(img_files)
|
||||||
return self.path
|
|
||||||
else:
|
else:
|
||||||
return self.clip_image_path
|
return self.clip_image_path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user