update cron jobs
This commit is contained in:
parent
cd29b06cce
commit
6be02b5760
@ -16,7 +16,7 @@ load_dotenv()
|
||||
api_key = os.getenv('FMP_API_KEY')
|
||||
|
||||
|
||||
include_current_quarter = False
|
||||
include_current_quarter = True
|
||||
|
||||
|
||||
async def get_data(session, symbol, max_retries=3, initial_delay=1):
|
||||
|
||||
@ -147,7 +147,7 @@ async def run():
|
||||
}
|
||||
pb.collection('notifications').create(newNotification)
|
||||
#send alert via email
|
||||
recipient = item.email
|
||||
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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user