This commit is contained in:
Mauricio Baeza 2021-08-04 18:41:31 -05:00
commit 7882898066
3 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,11 @@
# Lista de cambios
## v 0.3.1 [04-Ago-21]
---
* Fix - Issue #2
## v 0.3.0 [30-Jul-21]
---
* Se agrega soporte para consultar por los últimos X días

View File

@ -1 +1 @@
0.3.0
0.3.1

View File

@ -129,9 +129,9 @@ def _to_date(str_date, end=False):
try:
parts = str_date.split('-')
if end:
dt = datetime(parts[0], parts[1], parts[2], 23, 59, 59)
dt = datetime(int(parts[0]), int(parts[1]), int(parts[2]), 23, 59, 59)
else:
dt = datetime(parts[0], parts[1], parts[2], 0, 0, 0)
dt = datetime(int(parts[0]), int(parts[1]), int(parts[2]), 0, 0, 0)
except Exception as e:
error = 'Fecha inválida'