mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-17 02:45:08 +00:00
changes in task list API and add special character in password for added junior
This commit is contained in:
@ -369,8 +369,13 @@ class JuniorTaskListAPIView(viewsets.ModelViewSet):
|
||||
status_value = self.request.GET.get('status')
|
||||
current_page = self.request.GET.get('page')
|
||||
queryset = self.get_queryset()
|
||||
if status_value and status_value != '0':
|
||||
queryset = queryset.filter(task_status=status_value)
|
||||
task_status = ['1']
|
||||
if str(status_value) == '2':
|
||||
task_status = ['2', '4']
|
||||
elif str(status_value) == '3':
|
||||
task_status = ['3', '5', '6']
|
||||
if status_value:
|
||||
queryset = queryset.filter(task_status__in=task_status)
|
||||
paginator = self.pagination_class()
|
||||
total_count = len(queryset)
|
||||
total_pages = math.ceil(total_count / 10)
|
||||
|
Reference in New Issue
Block a user