diff --git a/app/cron_dashboard.py b/app/cron_dashboard.py index 68f95c9..fca31df 100644 --- a/app/cron_dashboard.py +++ b/app/cron_dashboard.py @@ -118,7 +118,7 @@ async def get_upcoming_earnings(session, end_date): try: async with session.get(url, params=querystring, headers=headers) as response: res = ujson.loads(await response.text())['earnings'] - #res = [e for e in res if datetime.strptime(e['date'], "%Y-%m-%d").date() != date.today() or datetime.strptime(e['time'], "%H:%M:%S").time() >= datetime.strptime("16:00:00", "%H:%M:%S").time()] + res = [e for e in res if datetime.strptime(e['date'], "%Y-%m-%d").date() != date.today() or datetime.strptime(e['time'], "%H:%M:%S").time() >= datetime.strptime("16:00:00", "%H:%M:%S").time()] for item in res: try: symbol = item['ticker']