update cron job

This commit is contained in:
MuslemRahimi 2024-08-26 23:13:37 +02:00
parent dbfd50a25c
commit 0e475e85e9

View File

@ -53,6 +53,8 @@ async def get_data(ticker):
try:
with open(f"json/forward-pe/{ticker}.json", 'r') as file:
forward_pe = ujson.load(file)['forwardPE']
if forward_pe == 0:
forward_pe = None
except:
forward_pe = None