Merge pull request #788 from elebumm/CordlessCoder-patch-2
fix track(enumerate()) order
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user