Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: michael1011 <[email protected]>
  • Loading branch information
jackstar12 and michael1011 authored Jan 23, 2025
1 parent 5445727 commit 0ba2992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ async def notify_subscribers(
)

threshold_msg = (
f"just went below {threshold}%"
f"went below {threshold}%"
if fees < threshold
else f"above {threshold}% again"
else f"are above {threshold}% again"
)
message = f"Fees for {swap_type} {from_currency} -> {to_currency} at {encode_url_params(swap_type, from_currency, to_currency)} {threshold_msg}"
message = f"Fees for {swap_type} {from_currency} -> {to_currency} {threshold_msg}: {encode_url_params(swap_type, from_currency, to_currency)}"

for chat_id in subscribers:
try:
Expand Down

0 comments on commit 0ba2992

Please sign in to comment.