Commit ecd67ff5 by Guba Sándor

common: fixed activity result on succes

parent b56c2abc
...@@ -64,7 +64,8 @@ class ActivityModel(TimeStampedModel): ...@@ -64,7 +64,8 @@ class ActivityModel(TimeStampedModel):
if not self.finished: if not self.finished:
self.finished = timezone.now() self.finished = timezone.now()
self.succeeded = succeeded self.succeeded = succeeded
self.result = result if result is not None:
self.result = result
if event_handler is not None: if event_handler is not None:
event_handler(self) event_handler(self)
self.save() self.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment