Skip to content

Commit

Permalink
employee_record.models: Use the same name for the same arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rsebille committed Dec 30, 2024
1 parent 58c7cb2 commit 4a1646c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions itou/employee_record/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 4a1646c

Please sign in to comment.