bugfixing

This commit is contained in:
MuslemRahimi 2025-02-25 11:57:53 +01:00
parent cce53995b6
commit b7e366dcdf
2 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@ def format_upcoming_earnings_data(earnings_data):
) )
formatted_items.append(entry) formatted_items.append(entry)
support_message = "\nIf you dont want Stocknear to go bankrupt, it would be awesome if you could [support me](https://stocknear.com/pricing)! 🙌" support_message = "\nInvest in yourself and embrace data-driven decisions to minimize losses, identify opportunities and achieve consistent growth with [Stocknear](https://stocknear.com/pricing) 🚀"
return "".join(formatted_items) + support_message return "".join(formatted_items) + support_message
@ -166,7 +166,7 @@ def format_recent_earnings_data(earnings_data):
formatted_items.append(entry) formatted_items.append(entry)
support_message = "\nIf you dont want Stocknear to go bankrupt, it would be awesome if you could [support me](https://stocknear.com/pricing)! 🙌" support_message = "\nInvest in yourself and embrace data-driven decisions to minimize losses, identify opportunities and achieve consistent growth with [Stocknear](https://stocknear.com/pricing) 🚀"
return "".join(formatted_items) + support_message return "".join(formatted_items) + support_message

View File

@ -69,7 +69,7 @@ async def get_data(symbol):
] ]
stats = await get_statistics(symbol) stats = await get_statistics(symbol)
print(stats)
res_dict = {**stats, 'annual': annual_data, 'quarter': quarter_data} res_dict = {**stats, 'annual': annual_data, 'quarter': quarter_data}
if annual_data and quarter_data: if annual_data and quarter_data:
@ -84,7 +84,7 @@ async def run():
con.close() con.close()
#Testing mode #Testing mode
#total_symbols = ['PLTR'] total_symbols = ['AAPL']
for symbol in tqdm(total_symbols): for symbol in tqdm(total_symbols):
try: try:
await get_data(symbol) await get_data(symbol)