fix: Si no se han creado llamadas al prospecto se rompe la transacción en _get_current_interest
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Camilo Gonzalez 2023-08-07 13:27:24 -05:00
parent 2bcaad6087
commit 3e41315689

View File

@ -29,4 +29,5 @@ class ProspectTrace(ModelSQL, ModelView):
self.prospect_city = self.prospect.city
def _get_current_interest(self, name):
return self.calls[-1].interest
if self.calls:
return self.calls[-1].interest