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

Commit e2ef185

Browse files
Update views.py
1 parent 1c422ee commit e2ef185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)