From e38fdf1e678c70f5212822d46dbf0ae037a01f97 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 21 Feb 2025 21:48:49 +0100 Subject: [PATCH] clean code --- app/cron_stockdeck.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/cron_stockdeck.py b/app/cron_stockdeck.py index f7dabab..187888f 100755 --- a/app/cron_stockdeck.py +++ b/app/cron_stockdeck.py @@ -22,7 +22,7 @@ with open(f"json/stock-screener/data.json", 'rb') as file: stock_screener_data = orjson.loads(file.read()) stock_screener_data_dict = {item['symbol']: item for item in stock_screener_data} -screener_columns = ['floatShares', 'forwardPE','shortOutStandingPercent','shortFloatPercent','revenuePerEmployee','profitPerEmployee','revenueTTM',"netIncomeTTM"] +screener_columns = ['forwardPE','revenueTTM',"netIncomeTTM"] async def get_data(ticker): try: @@ -61,25 +61,21 @@ async def get_data(ticker): res_list = { **screener_result, "ipoDate": company_profile[0]['ipoDate'], - 'ceoName': company_profile[0]['ceo'], 'companyName': company_profile[0]['companyName'], 'industry': company_profile[0]['industry'], 'sector': company_profile[0]['sector'], 'beta': company_profile[0]['beta'], 'marketCap': company_profile[0]['mktCap'], 'avgVolume': company_profile[0]['volAvg'], - 'country': company_profile[0]['country'], 'exchange': company_profile[0]['exchangeShortName'], 'earning': company_quote['earningsAnnouncement'], 'pe': company_quote['pe'], 'eps': company_quote['eps'], - 'sharesOutstanding': company_quote['sharesOutstanding'], 'score': score, 'previousClose': company_quote['price'], #This is true because I update my db before the market opens hence the price will be the previousClose price. 'website': company_profile[0]['website'], 'description': company_profile[0]['description'], 'fullTimeEmployees': company_profile[0]['fullTimeEmployees'], - 'stockSplits': company_stock_split, } return res_list