pull/758/head
HallowedDust5 3 years ago
parent 39160f49bf
commit 34ce61e1ca
No known key found for this signature in database
GPG Key ID: AAAAF940F1C8C004

@ -157,11 +157,10 @@ def get_subreddit_threads(subreddit_, thread_link_, number_of_comments):
"comment_id": top_level_comment.id, "comment_id": top_level_comment.id,
} }
) )
count += 1
except AttributeError: except AttributeError:
pass pass
print_substep("AskReddit threads retrieved successfully.", style_="bold green") print_substep("AskReddit threads retrieved successfully.", style="bold green")
content["thread_url"] = f"https://reddit.com{submission.permalink}" content["thread_url"] = f"https://reddit.com{submission.permalink}"
content["thread_title"] = submission.title content["thread_title"] = submission.title

@ -24,11 +24,9 @@ def print_step(text):
console.print(panel) console.print(panel)
def print_substep(text, style_=None): def print_substep(text, style=None):
"""Prints a rich info message without the panelling.""" """Prints a rich info message without the panelling."""
if style_ is not None: console.print(text, style)
console.print(text, style=style_)
console.print(text)
def print_table(items): def print_table(items):
"""Prints items in a table.""" """Prints items in a table."""

Loading…
Cancel
Save