|
@ -59,8 +59,10 @@ def get_mesa_diretora(request): |
|
|
kwargs = {} |
|
|
kwargs = {} |
|
|
|
|
|
|
|
|
legislatura = request.GET.get('legislatura') |
|
|
legislatura = request.GET.get('legislatura') |
|
|
if legislatura: |
|
|
if not legislatura: |
|
|
kwargs['legislatura_id'] = legislatura |
|
|
legislatura = Legislatura.objects.order_by('-data_inicio').first().id |
|
|
|
|
|
|
|
|
|
|
|
kwargs['legislatura_id'] = legislatura |
|
|
|
|
|
|
|
|
sessao = request.GET.get('sessao') |
|
|
sessao = request.GET.get('sessao') |
|
|
if sessao: |
|
|
if sessao: |
|
@ -739,7 +741,4 @@ class AppVersionView(APIView): |
|
|
'user': request.user.username, |
|
|
'user': request.user.username, |
|
|
'is_authenticated': request.user.is_authenticated, |
|
|
'is_authenticated': request.user.is_authenticated, |
|
|
} |
|
|
} |
|
|
return Response(content) |
|
|
return Response(content) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|