From a3e4bdf7e1daa3a94f95d2825631defcc2c9172a Mon Sep 17 00:00:00 2001 From: TeoCalvo Date: Thu, 18 Jul 2024 14:27:15 +0000 Subject: [PATCH 1/2] Fix: datetime.strptime --- src/gold/ingestao.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gold/ingestao.ipynb b/src/gold/ingestao.ipynb index 3fb115b..ccbf395 100644 --- a/src/gold/ingestao.ipynb +++ b/src/gold/ingestao.ipynb @@ -55,7 +55,7 @@ "else:\n", " dt_start = datetime.strptime(start, '%Y-%m-%d') \n", "\n", - "dt_stop = datetime.strptime(stop, '%Y-%m-%d')" + "dt_stop = datetime.datetime.strptime(stop, '%Y-%m-%d')" ] }, { From 3187e28565e5475850f1f737e053c627fcc75332 Mon Sep 17 00:00:00 2001 From: TeoCalvo Date: Thu, 18 Jul 2024 14:27:54 +0000 Subject: [PATCH 2/2] Fix: datetime.strptime --- src/gold/ingestao.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gold/ingestao.ipynb b/src/gold/ingestao.ipynb index ccbf395..44cded5 100644 --- a/src/gold/ingestao.ipynb +++ b/src/gold/ingestao.ipynb @@ -53,7 +53,7 @@ "if start == datetime.datetime.now().strftime('%Y-%m-%d'):\n", " dt_start = datetime.datetime.now() - datetime.timedelta(days=1)\n", "else:\n", - " dt_start = datetime.strptime(start, '%Y-%m-%d') \n", + " dt_start = datetime.datetime.strptime(start, '%Y-%m-%d') \n", "\n", "dt_stop = datetime.datetime.strptime(stop, '%Y-%m-%d')" ]