From d82202952836b0cc4546cd213d5956b35e46fbf2 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 10 Apr 2025 10:51:24 +0200 Subject: [PATCH] bugfixing --- app/cron_list.py | 18 +++++++++--------- app/utils/helper.py | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/cron_list.py b/app/cron_list.py index bef67b7..582aeea 100644 --- a/app/cron_list.py +++ b/app/cron_list.py @@ -644,15 +644,15 @@ async def get_highest_income_tax(): marketCap = quote_data.get('marketCap') name = quote_data.get('name') - # Append stock data to res_list if it meets the criteria - res_list.append({ - 'symbol': symbol, - 'name': name, - 'price': price, - 'changesPercentage': changesPercentage, - 'marketCap': marketCap, - 'incomeTaxExpense': income_tax - }) + if marketCap >= 1E9: + res_list.append({ + 'symbol': symbol, + 'name': name, + 'price': price, + 'changesPercentage': changesPercentage, + 'marketCap': marketCap, + 'incomeTaxExpense': income_tax + }) except: pass diff --git a/app/utils/helper.py b/app/utils/helper.py index 30e140a..40fe622 100644 --- a/app/utils/helper.py +++ b/app/utils/helper.py @@ -96,6 +96,7 @@ def get_last_completed_quarter(): ''' def get_last_completed_quarter(): + #return last two quarters ago today = datetime.today() year = today.year month = today.month