Commit ecd67ff5 by Guba Sándor

common: fixed activity result on succes

parent b56c2abc
...@@ -64,6 +64,7 @@ class ActivityModel(TimeStampedModel): ...@@ -64,6 +64,7 @@ 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
if result is not None:
self.result = result self.result = result
if event_handler is not None: if event_handler is not None:
event_handler(self) event_handler(self)
......
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