Skip to content

Commit

Permalink
Surely it will work this time
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Feb 28, 2023
1 parent 63cc529 commit ba9bc6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bubbles/commands/subreddits.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def subreddits(payload: Payload) -> None:
parts = payload.get_text().split()

start_text = parts[1] if len(parts) >= 2 else "1 week ago"
end_text = parts[2] if len(parts) >= 3 else "now"
end_text = parts[2] if len(parts) >= 3 else "end"

try:
start, end, time_str = parse_time_constraints(start_text, end_text)
Expand All @@ -36,7 +36,7 @@ def subreddits(payload: Payload) -> None:
return

data = response.json()
response_txt = "\n".join(f"- r/{sub}: {count}" for sub, count in data.items())
response_txt = "\n".join(f"- r/{sub}: {count}" for (sub, count) in data.items())

payload.say(response_txt)

Expand Down

0 comments on commit ba9bc6a

Please sign in to comment.