From 94912cde3e5ba6043d70aad81eb1678af4e489c0 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Tue, 5 Nov 2024 16:07:51 +0100 Subject: [PATCH] bugfixing: correct redirecting of price alert --- app/cron_price_alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cron_price_alert.py b/app/cron_price_alert.py index 5075141..3f3f69a 100755 --- a/app/cron_price_alert.py +++ b/app/cron_price_alert.py @@ -74,7 +74,7 @@ def send_email(recipient, symbol, asset_type, current_price,target_price, condit html_body = html_body.replace('currentDate', formatted_date) html_body = html_body.replace('addingSentence', f'The price of ${current_price} is at/{condition} your target price of ${target_price}') html_body = html_body.replace('symbol', symbol) - html_body = html_body.replace('asset-link', f'/{asset_type}/{symbol}') + html_body = html_body.replace('asset-link', f'{asset_type}/{symbol}') # Create a MIMEMultipart object message = MIMEMultipart('alternative')