Compare commits
No commits in common. "577e87d8dbd36f9184f3e0bf09424950f38de210" and "1a84b8eb9956d5b9d1be13ff785a275361dfb2e9" have entirely different histories.
577e87d8db
...
1a84b8eb99
@ -176,10 +176,9 @@ class AppointmentStatsView(generics.GenericAPIView):
|
||||
class UserAppointmentStatsView(generics.GenericAPIView):
|
||||
permission_classes = [IsAuthenticated]
|
||||
|
||||
def post(self, request):
|
||||
email = request.data.get('email')
|
||||
def get(self, request):
|
||||
stats = AppointmentRequest.objects.filter(
|
||||
email=email
|
||||
email=request.user.email
|
||||
).aggregate(
|
||||
total=Count('id'),
|
||||
pending=Count('id', filter=Q(status='pending_review')),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user