remove sending emails
This commit is contained in:
parent
1e9c0c8c19
commit
59ab55c8cf
@ -131,8 +131,8 @@ async def run():
|
|||||||
}
|
}
|
||||||
pb.collection('notifications').create(newNotification)
|
pb.collection('notifications').create(newNotification)
|
||||||
#send alert via email
|
#send alert via email
|
||||||
recipient = (pb.collection('users').get_one(item.user)).email
|
#recipient = (pb.collection('users').get_one(item.user)).email
|
||||||
send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition)
|
#send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition)
|
||||||
|
|
||||||
elif (item.condition == 'above') and target_price <= current_price:
|
elif (item.condition == 'above') and target_price <= current_price:
|
||||||
#print('above true', symbol, target_price)
|
#print('above true', symbol, target_price)
|
||||||
@ -147,8 +147,8 @@ async def run():
|
|||||||
}
|
}
|
||||||
pb.collection('notifications').create(newNotification)
|
pb.collection('notifications').create(newNotification)
|
||||||
#send alert via email
|
#send alert via email
|
||||||
recipient = (pb.collection('users').get_one(item.user)).email
|
#recipient = (pb.collection('users').get_one(item.user)).email
|
||||||
send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition)
|
#send_email(recipient, symbol, item.asset_type, current_price, target_price, item.condition)
|
||||||
try:
|
try:
|
||||||
asyncio.run(run())
|
asyncio.run(run())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user