Skip to content
Snippets Groups Projects
Commit 5dcc4ee3 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

adapt to new StorageLeaf API version 2.0.1

parent e117f36c
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,12 @@ class StorageLeafService(MultiCacheKeyService):
def _fetch_data(self, settings: Dict) -> Dict:
fetchType = settings['fetchType']
if fetchType == 'minMax':
joinedIDs = ','.join([str(item) for item in settings["sensorIDsForMinMax"]])
joinedIDs = '&'.join([f'sensorIds={item}' for item in settings["sensorIDsForMinMax"]])
startDateTime = urllib.parse.quote(settings['startDateTime'])
endDateTime = urllib.parse.quote(settings['endDateTime'])
urlMinMax = Helpers.join_url_parts(settings['url'],
f'measurements/minMax?sensorIds={joinedIDs}'
f'measurements/minMax?{joinedIDs}'
f'&startDateTime={startDateTime}'
f'&endDateTime={endDateTime}')
minMaxResponse = requests.get(urlMinMax)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment