From 6412aa546b7cb3f87da0408f95c60306d66be171 Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Mon, 4 Jul 2022 00:07:17 +0100 Subject: [PATCH] fix: add float cast to opacity to fix bug --- video_creation/final_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 23876ed..3e1f52e 100755 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -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,