fix: add float cast to opacity to fix bug

This commit is contained in:
Callum Leslie committed 2022-07-04 00:07:17 +01:00
1 parent 0eeee51fcc
commit 6412aa546b
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ def make_final_video(number_of_clips: int, length: int, reddit_obj: dict):
# add title to video
image_clips = []
# Gather all images
new_opacity = 1 if opacity is None or float(opacity) >= 1 else opacity
new_opacity = 1 if opacity is None or float(opacity) >= 1 else float(opacity)
image_clips.insert(
0,