Skip to content

Commit 9e4f406

Browse files
authored
Merge pull request #387 from hydroserver2/386-etl-internal-loader-window-calc
Fixed ETL loader window calculation.
2 parents 3a40a4a + becb962 commit 9e4f406

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

django/domains/etl/internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def load(
149149
f"Missing datastream IDs: {', '.join(sorted(missing_datastreams))}."
150150
)
151151

152-
if any(datastream.phenomenon_end_time is None for datastream in datastreams.values()):
152+
if not datastreams or any(datastream.phenomenon_end_time is None for datastream in datastreams.values()):
153153
earliest_phenomenon_end_time = None
154154
else:
155155
earliest_phenomenon_end_time = min(

0 commit comments

Comments
 (0)