update cron job
This commit is contained in:
parent
dbfd50a25c
commit
0e475e85e9
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user