fixes economy notebook

This commit is contained in:
hjoaquim
2022-11-14 17:53:42 +00:00
parent d73c7f8cae
commit b76cbbbf3c

View File

@@ -32,7 +32,7 @@
"\n",
"from openbb_terminal.reports import widget_helpers as widgets\n",
"from openbb_terminal.sdk import openbb\n",
"from openbb_terminal.sdk import openbb import helper\n",
"from openbb_terminal.helper_funcs import get_user_timezone\n",
"from openbb_terminal.helper_classes import TerminalStyle\n",
"from openbb_terminal.core.config.paths import REPOSITORY_DIRECTORY\n",
"\n",
@@ -83,7 +83,7 @@
"source": [
"author = \"OpenBB\"\n",
"report_title = f\"Economy report\"\n",
"user_time_zone = pytz.timezone(helper.get_user_timezone())\n",
"user_time_zone = pytz.timezone(get_user_timezone())\n",
"report_date = pd.Timestamp.now(tz=user_time_zone).strftime(\"%d %B, %Y\")\n",
"report_time = pd.Timestamp.now(tz=user_time_zone).strftime(\"%H:%M\")\n",
"report_timezone = pd.Timestamp.now(tz=user_time_zone).tzinfo\n",
@@ -694,7 +694,7 @@
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3.10.4 ('obb')",
"language": "python",
"name": "python3"
},
@@ -708,11 +708,11 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.10.4"
},
"vscode": {
"interpreter": {
"hash": "e784374cc4f9a84ed6af2983247aaf351b155c82bcc2188134a65f3c99031000"
"hash": "1a8cc6b6e60740679b24fc1ea93bdeb94d949a22102a80c99b7fd3f0d572afd6"
}
}
},