From 4a1646c6a234faa4f22d3a2a941367fc8225b904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20S=C3=A9bille?= Date: Mon, 30 Dec 2024 18:41:51 +0100 Subject: [PATCH] employee_record.models: Use the same name for the same arguments --- itou/employee_record/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/itou/employee_record/models.py b/itou/employee_record/models.py index 9fa28b953c..cf5cd12ae0 100644 --- a/itou/employee_record/models.py +++ b/itou/employee_record/models.py @@ -311,13 +311,13 @@ def ready(self): self._fill_denormalized_fields() @xwf_models.transition() - def sent(self, asp_filename, line_number, archive): + def sent(self, file, line_number, archive): """ An employee record is sent to ASP via a JSON file, The file name is stored for further feedback processing (also done via a file) """ self.clean() - self.set_asp_batch_information(asp_filename, line_number, archive) + self.set_asp_batch_information(file, line_number, archive) @xwf_models.transition() def reject(self, code, label, archive): @@ -585,8 +585,8 @@ def __repr__(self): return f"<{type(self).__name__} pk={self.pk}>" @xwf_models.transition(EmployeeRecordTransition.SENT) - def sent(self, filename, line_number, archive): - self.set_asp_batch_information(filename, line_number, archive) + def sent(self, file, line_number, archive): + self.set_asp_batch_information(file, line_number, archive) @xwf_models.transition(EmployeeRecordTransition.REJECT) def reject(self, code, label, archive):