chore: se invierte comprobación de nulo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Camilo Gonzalez 2023-08-12 20:46:19 -05:00
parent cf51d4d989
commit 6fb2e1d537

View File

@ -36,7 +36,9 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
@fields.depends('calls', 'current_interest')
def on_change_calls(self):
if self.calls:
if not self.calls:
return
last_call = self.calls[-1]
self.current_interest = last_call.interest