feat(frontend): implementar selos faltantes e corrigir alinhamento tabelas
- Adicionar 10 novos selos: MB_BANCA_*, EVENTO, PROJ, IDIOMA_*, TITULACAO_* - Adicionar TETOS para Bloco A e B no calculo de pontuacao - Adicionar modais para selos de banca, evento e projeto - Corrigir alinhamento de colunas nas tabelas do painel de criterios - Corrigir alinhamento nos modais de blocos (BlocoCriteriosModal) - Ajustar layout dos selos para linha dedicada abaixo do nome - Corrigir distribuicao de espaco nas tabelas com selos - Corrigir extracao de datas de consultoria no backend
This commit is contained in:
@@ -169,17 +169,21 @@ class ConsultorRepositoryImpl(ConsultorRepository):
|
||||
situacoes.append(situacao)
|
||||
|
||||
inicio = (
|
||||
self._parse_date(dc.get("inicioVinculacao"))
|
||||
self._parse_date(c.get("inicio"))
|
||||
or self._parse_date(dc.get("inicioVinculacao"))
|
||||
or self._parse_date(dc.get("inicioSituacao"))
|
||||
or self._parse_date(c.get("inicio"))
|
||||
)
|
||||
if inicio and inicio.year < 1950:
|
||||
inicio = None
|
||||
situacao_texto = (dc.get("situacaoConsultoria") or "").lower()
|
||||
is_situacao_ativa = "atividade" in situacao_texto or "ativo" in situacao_texto
|
||||
fim = (
|
||||
self._parse_date(dc.get("fimVinculacao"))
|
||||
self._parse_date(c.get("fim"))
|
||||
or self._parse_date(dc.get("fimVinculacao"))
|
||||
or (self._parse_date(dc.get("inativacaoSituacao")) if not is_situacao_ativa else None)
|
||||
or self._parse_date(c.get("fim"))
|
||||
)
|
||||
if fim and fim.year < 1950:
|
||||
fim = None
|
||||
|
||||
if inicio and fim and fim < inicio:
|
||||
fim = None
|
||||
|
||||
Reference in New Issue
Block a user