Remoted int() wrapper

Removed int() around opacity = settings.config["settings"]["opacity"] to fraction numbers (IE 0.5, 0.7, etc)
This commit is contained in:
Josh Holly authored and GitHub committed 2023-05-21 07:41:21 -05:00
1 parent 325266dc85
commit 15a17896ca
1 file changed
+3 -2
+3 -2
View File
@@ -142,7 +142,8 @@ def make_final_video(
# settings values
W: Final[int] = int(settings.config["settings"]["resolution_w"])
H: Final[int] = int(settings.config["settings"]["resolution_h"])
opacity = int(settings.config["settings"]["opacity"])
"""Fixed to allow fraction opacity Ea: 0.7"""
opacity = settings.config["settings"]["opacity"]
reddit_id = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"])
@@ -405,4 +406,4 @@ def make_final_video(
print_step("Removing temporary files 🗑")
cleanups = cleanup(reddit_id)
print_substep(f"Removed {cleanups} temporary files 🗑")
print_step("Done! 🎉 The video is in the results folder 📁")
print_step("Done! 🎉 The video is in the results folder 📁")