bugfixing
This commit is contained in:
parent
3d9817d138
commit
344cf2b217
@ -1271,6 +1271,8 @@ async def get_economic_calendar():
|
|||||||
country = item['country']
|
country = item['country']
|
||||||
if country == 'USA':
|
if country == 'USA':
|
||||||
country_code = 'us'
|
country_code = 'us'
|
||||||
|
elif country == 'US':
|
||||||
|
country_code = 'us'
|
||||||
elif len(country) in (2, 3):
|
elif len(country) in (2, 3):
|
||||||
# Assume country is already a code
|
# Assume country is already a code
|
||||||
country_code = country.lower()
|
country_code = country.lower()
|
||||||
@ -1281,7 +1283,6 @@ async def get_economic_calendar():
|
|||||||
country_code = matching_country.lower()
|
country_code = matching_country.lower()
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
impact = item.get('impact', None)
|
impact = item.get('impact', None)
|
||||||
if impact == 'High':
|
if impact == 'High':
|
||||||
importance = 3
|
importance = 3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user