From 9ccbfc06dc9d9ef88f6cb6d1a6f9b0c8325a6023 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Tue, 10 Dec 2024 11:01:56 +0100 Subject: [PATCH] bugfixing --- app/cron_earnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cron_earnings.py b/app/cron_earnings.py index 36e2514..a5425b2 100644 --- a/app/cron_earnings.py +++ b/app/cron_earnings.py @@ -94,7 +94,7 @@ async def get_data(session, ticker): revenue_prior = float(nearest_recent['revenue_prior']) if nearest_recent['revenue_prior'] != '' else 0 revenue_surprise = float(nearest_recent['revenue_surprise']) if nearest_recent['revenue_surprise'] != '' else 0 revenue = float(nearest_recent['revenue']) if nearest_recent['revenue'] != '' else 0 - if revenue !=0 and revenue_prior != 0 and eps_prior is not None and eps != 0 and revenue_surprise != 0 and eps_surprise is not None: + if revenue !=0 and revenue_prior != 0 and eps_prior != 0 and eps != 0 and revenue_surprise != 0 and eps_surprise != 0: res_list = { 'epsPrior':eps_prior, 'epsSurprise': eps_surprise,