Compare commits
2 Commits
1a84b8eb99
...
577e87d8db
| Author | SHA1 | Date | |
|---|---|---|---|
| 577e87d8db | |||
| ea99552d95 |
@ -176,9 +176,10 @@ class AppointmentStatsView(generics.GenericAPIView):
|
||||
class UserAppointmentStatsView(generics.GenericAPIView):
|
||||
permission_classes = [IsAuthenticated]
|
||||
|
||||
def get(self, request):
|
||||
def post(self, request):
|
||||
email = request.data.get('email')
|
||||
stats = AppointmentRequest.objects.filter(
|
||||
email=request.user.email
|
||||
email=email
|
||||
).aggregate(
|
||||
total=Count('id'),
|
||||
pending=Count('id', filter=Q(status='pending_review')),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user