From 59ab55c8cfe24b8c551260aa15bf65555b84b291 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 6 Nov 2024 10:06:13 +0100 Subject: [PATCH] remove sending emails --- app/cron_price_alert.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/cron_price_alert.py b/app/cron_price_alert.py index 3f3f69a..f2f35ff 100755 --- a/app/cron_price_alert.py +++ b/app/cron_price_alert.py @@ -131,8 +131,8 @@ async def run(): } pb.collection('notifications').create(newNotification) #send alert via email - recipient = (pb.collection('users').get_one(item.user)).email - send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition) + #recipient = (pb.collection('users').get_one(item.user)).email + #send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition) elif (item.condition == 'above') and target_price <= current_price: #print('above true', symbol, target_price) @@ -147,8 +147,8 @@ async def run(): } pb.collection('notifications').create(newNotification) #send alert via email - recipient = (pb.collection('users').get_one(item.user)).email - send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition) + #recipient = (pb.collection('users').get_one(item.user)).email + #send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition) try: asyncio.run(run()) except Exception as e: