Renamed the "j_date" variable to "date" in the "__add_usd_recurring" method of the SampleData class in the reset module of the test site.

This commit is contained in:
依瑪貓 2023-04-26 13:23:23 +08:00
parent b5aa7e923f
commit 4f3339bf68

View File

@ -122,9 +122,9 @@ class SampleData(BaseTestData):
month: int
# Recurring in USD
j_date: dt.date = dt.date(today.year - 5, today.month, today.day)
j_date = j_date + dt.timedelta(days=(4 - j_date.weekday()))
days = (today - j_date).days
date: dt.date = dt.date(today.year - 5, today.month, today.day)
date = date + dt.timedelta(days=(4 - date.weekday()))
days = (today - date).days
while True:
if days < 0:
break