switch from ujson to orjson

This commit is contained in:
MuslemRahimi 2024-07-12 15:54:18 +02:00
parent 49bb27cede
commit 02afc2ca81
2 changed files with 361 additions and 363 deletions

File diff suppressed because it is too large Load Diff

View File

@ -267,7 +267,6 @@ async def get_earnings_calendar(con, symbols):
data = await response.json() data = await response.json()
filtered_data = [{k: v for k, v in stock.items() if stock['symbol'] in symbols and '.' not in stock['symbol'] and '-' not in stock['symbol']} for stock in data] filtered_data = [{k: v for k, v in stock.items() if stock['symbol'] in symbols and '.' not in stock['symbol'] and '-' not in stock['symbol']} for stock in data]
#filtered_data = [entry for entry in filtered_data if entry] #filtered_data = [entry for entry in filtered_data if entry]
print(filtered_data)
for entry in filtered_data: for entry in filtered_data:
try: try:
symbol = entry['symbol'] symbol = entry['symbol']