Skip to content

Commit 9aa05f8

Browse files
author
sreeder
committed
fix improper location of ResultID deletion
1 parent 80837b5 commit 9aa05f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

odmtools/odmservices/edit_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,7 @@ def getResult(self, var, meth, proc, action, action_by):
551551
values = self.memDB.getDataValuesDF()
552552
# copy old
553553
result = self.memDB.series_service.get_series(str(values["resultid"][0]))
554-
result.ResultID = None
555-
result.ResultUUID = None
554+
556555

557556

558557
# change var, meth proc, in df #intend ts, agg sta
@@ -571,6 +570,7 @@ def getResult(self, var, meth, proc, action, action_by):
571570
#if result does not exist
572571
if not self.memDB.series_service.resultExists(result):
573572
try:
573+
574574
#create Action
575575
action.ActionID = None
576576
action.ActionTypeCV = "Derivation"
@@ -601,6 +601,8 @@ def getResult(self, var, meth, proc, action, action_by):
601601
# create TimeSeriesResult - this should also contain all of the stuff for the Result
602602
time, offset = self.get_current_time_and_utcoffset()
603603

604+
result.ResultID = None
605+
result.ResultUUID = None
604606
result.ValueCount = 0
605607
result.FeatureActionID = feature_action.FeatureActionID
606608
result.ResultDateTime = time

0 commit comments

Comments
 (0)