fixed problem with the filter functionality

This commit is contained in:
Per Qvarforth 2023-05-22 19:04:42 +00:00
parent c34633952e
commit 84b711a122
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class FilterHistoryResponseCreator():
"""
minTimestamp = None
if (len(stationIds) > 0) :
minTimestamp = self.state.getStationLatestTimestampOnMap(stationIds[0])
minTimestamp = self.state.getStationLatestTimestampOnMap(list(stationIds)[0])
if (minTimestamp is None) :
minTimestamp = self.state.getMapSectorTimestamp(None) # None as argument is useful even when not dealing with map-sectors
if (len(stationIds) > 1) :