From 8c3145fcb4f475ffac620d8c29cef8a653da6a8a Mon Sep 17 00:00:00 2001 From: MOMINCKS <63245608+MOMINCKS@users.noreply.github.com> Date: Sat, 23 Jul 2022 08:16:35 +0800 Subject: [PATCH] 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 Co-authored-by: James Maslek --- openbb_terminal/economy/econdb_model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbb_terminal/economy/econdb_model.py b/openbb_terminal/economy/econdb_model.py index e6f86ff74a8..c94c70751dc 100644 --- a/openbb_terminal/economy/econdb_model.py +++ b/openbb_terminal/economy/econdb_model.py @@ -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}.")