From cd08822f349d0737f2dafe3f2d8bdfb787509fb8 Mon Sep 17 00:00:00 2001 From: gabrielwol <80077912+gabrielwol@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:44:20 +0000 Subject: [PATCH] #984 remove timespec --- volumes/ecocounter/pull_data_from_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volumes/ecocounter/pull_data_from_api.py b/volumes/ecocounter/pull_data_from_api.py index d5f5384b1..7bde74b42 100644 --- a/volumes/ecocounter/pull_data_from_api.py +++ b/volumes/ecocounter/pull_data_from_api.py @@ -57,8 +57,8 @@ def getFlowData(token: str, flow_id: int, startDate: datetime, endDate: datetime f'{URL}/api/data/site/{flow_id}', headers={'Authorization': f'Bearer {token}'}, params={ - 'begin': requestStart.isoformat(timespec='seconds'), - 'end': requestEnd.isoformat(timespec='seconds'), + 'begin': requestStart.isoformat(), + 'end': requestEnd.isoformat(), 'complete': 'false', 'step': '15m' }