Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit f199473

Browse files
2 parents 3ffd9f3 + ee12fc3 commit f199473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ charset-normalizer==3.1.0
66
cryptography==41.0.0
77
defusedxml==0.7.1
88
deprecation==2.1.0
9-
Django==3.2.18
9+
Django==3.2.20
1010
django-email-verification==0.3.1
1111
djangorestframework==3.14.0
1212
gunicorn==20.1.0

rewards/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def post(self, request, **kwargs):
9292
last_claimed = RecentEarnings.objects.filter(
9393
user=user, way_to_earn='Daily Check-In').order_by('-created_at').first()
9494

95-
if last_claimed and last_claimed.created_at.date() == timezone.now().date():
95+
if last_claimed and last_claimed.created_at == timezone.now().date():
9696
# User has already claimed the award today
9797
return Response({'message': 'You have already claimed the award today.'}, status=400)
9898

0 commit comments

Comments
 (0)