Merge pull request from elebumm/CordlessCoder-patch-2

fix track(enumerate()) order
pull/790/head
Jason 3 years ago committed by GitHub
commit 79b9a7bc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,10 +3,10 @@ botocore==1.27.12
gTTS==2.2.4
moviepy==1.0.3
mutagen==1.45.1
playwright==1.22.0
playwright==1.23.0
praw==7.6.0
python-dotenv==0.20.0
pytube==12.1.0
requests==2.28.0
requests==2.28.1
rich==12.4.4
translators==5.2.2

@ -82,8 +82,8 @@ def download_screenshots_of_reddit_posts(reddit_object: dict[str], screenshot_nu
path="assets/temp/png/story_content.png"
)
else:
for idx, comment in track(
enumerate(reddit_object["comments"]), "Downloading screenshots..."
for idx, comment in enumerate(
track(reddit_object["comments"], "Downloading screenshots...")
):
# Stop if we have reached the screenshot_num
if idx >= screenshot_num:

Loading…
Cancel
Save