mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
better match for econ param parse to dict (#2123)
* better match econ param parse to dict * Update econdb_model.py * fix str assignment error Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt> Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
@@ -498,6 +498,8 @@ def get_macro_data(
|
||||
The units of the macro data, e.g. 'Bbl/day" for oil.
|
||||
"""
|
||||
country = country.replace(" ", "_")
|
||||
country = country[0].upper() + country[1:]
|
||||
parameter = parameter.upper()
|
||||
|
||||
if country not in COUNTRY_CODES:
|
||||
console.print(f"No data available for the country {country}.")
|
||||
|
||||
Reference in New Issue
Block a user