bugfixing
This commit is contained in:
parent
1dc965c78a
commit
d822029528
@ -644,15 +644,15 @@ async def get_highest_income_tax():
|
|||||||
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({
|
res_list.append({
|
||||||
'symbol': symbol,
|
'symbol': symbol,
|
||||||
'name': name,
|
'name': name,
|
||||||
'price': price,
|
'price': price,
|
||||||
'changesPercentage': changesPercentage,
|
'changesPercentage': changesPercentage,
|
||||||
'marketCap': marketCap,
|
'marketCap': marketCap,
|
||||||
'incomeTaxExpense': income_tax
|
'incomeTaxExpense': income_tax
|
||||||
})
|
})
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@ -96,6 +96,7 @@ def get_last_completed_quarter():
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
def get_last_completed_quarter():
|
def get_last_completed_quarter():
|
||||||
|
#return last two quarters ago
|
||||||
today = datetime.today()
|
today = datetime.today()
|
||||||
year = today.year
|
year = today.year
|
||||||
month = today.month
|
month = today.month
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user