Skip to content

Commit 22ce790

Browse files
EnovotnyEric Novotny
andauthored
fix timeseries store multithread (#254)
Co-authored-by: Eric Novotny <[email protected]>
1 parent 892d15d commit 22ce790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwms/timeseries/timeseries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ def store_timeseries(
606606
for chunk in chunks:
607607
future = executor.submit(
608608
api.post, # The function to execute
609-
endpoint, # The chunk of data to store
610-
data,
609+
endpoint,
610+
chunk, # The chunk of data to store
611611
params,
612612
)
613613
futures.append(future) # Add the future to the list

0 commit comments

Comments
 (0)