Skip to content

Commit

Permalink
Fix limit typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed May 26, 2024
1 parent 43317cc commit 720eca5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/donations/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def post(self, request, *args, **kwargs):
pass

DONATION_LIMIT = date(
year=settings.DONATION_LIMIT_YEAR,
month=settings.DONATION_LIMIT_MONTH,
day=settings.DONATION_LIMIT_DAY,
year=settings.DONATIONS_LIMIT_YEAR,
month=settings.DONATIONS_LIMIT_MONTH,
day=settings.DONATIONS_LIMIT_DAY,
)

if timezone.now().date() > DONATION_LIMIT:
Expand Down
6 changes: 3 additions & 3 deletions backend/donations/views/ngo.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def get_context_data(self, ngo_url, **kwargs):
def get(self, request, ngo_url, *args, **kwargs):
context = self.get_context_data(ngo_url)
donation_limit = date(
year=settings.DONATION_LIMIT_YEAR,
month=settings.DONATION_LIMIT_MONTH,
day=settings.DONATION_LIMIT_DAY,
year=settings.DONATIONS_LIMIT_YEAR,
month=settings.DONATIONS_LIMIT_MONTH,
day=settings.DONATIONS_LIMIT_DAY,
)

try:
Expand Down

0 comments on commit 720eca5

Please sign in to comment.