Revised the variable in the "accounting_sample" management command.

This commit is contained in:
依瑪貓 2022-12-05 18:58:28 +08:00
parent e80aceb8ff
commit 1967359142

View File

@ -155,7 +155,7 @@ class Command(BaseCommand):
payday = today.replace(day=5)
if payday > today:
payday = self.previous_month(payday)
for i in range(months):
for _ in range(months):
self.add_payroll(payday)
payday = self.previous_month(payday)