Egon sending

* adds sending to EGON (again) when Intervention is recorded
This commit is contained in:
mpeltriaux 2022-12-05 06:06:52 +01:00
parent cf7cedaa34
commit edcf266dfa

View File

@ -151,6 +151,7 @@ class Intervention(BaseObject,
def set_recorded(self, user: User) -> UserActionLogEntry: def set_recorded(self, user: User) -> UserActionLogEntry:
log_entry = super().set_recorded(user) log_entry = super().set_recorded(user)
self.add_log_entry_to_compensations(log_entry) self.add_log_entry_to_compensations(log_entry)
self.send_data_to_egon()
return log_entry return log_entry
def add_log_entry_to_compensations(self, log_entry: UserActionLogEntry): def add_log_entry_to_compensations(self, log_entry: UserActionLogEntry):