bugfixing

This commit is contained in:
MuslemRahimi 2025-04-10 11:00:03 +02:00
parent d822029528
commit 2e6adf7ed8

View File

@ -598,15 +598,16 @@ async def get_highest_revenue():
marketCap = quote_data.get('marketCap') marketCap = quote_data.get('marketCap')
name = quote_data.get('name') name = quote_data.get('name')
# Append stock data to res_list if it meets the criteria if marketCap >= 1E9:
res_list.append({ # Append stock data to res_list if it meets the criteria
'symbol': symbol, res_list.append({
'name': name, 'symbol': symbol,
'price': price, 'name': name,
'changesPercentage': changesPercentage, 'price': price,
'marketCap': marketCap, 'changesPercentage': changesPercentage,
'revenue': revenue 'marketCap': marketCap,
}) 'revenue': revenue
})
except: except:
pass pass