Skip to content

Commit

Permalink
feat: Add new fields and update existing fields related to interferen…
Browse files Browse the repository at this point in the history
…ce handling

This change introduces new fields and updates existing fields related to interference handling in the FIELDS dictionary:

- Adds the `local_interf_confere_indicado` field with options to indicate whether the location of the interference matches the reported location.
- Updates the `foi_constatada_interferencia` field to include mapping for the new `local_interf_confere_indicado` field.
- Updates the `interferencia_sanada` field options to include an empty string option.
- Updates the `justificativa_da_improcedencia` field options to include an empty string option.

These improvements enhance the handling and tracking of interference-related information in the application.
  • Loading branch information
ronaldokun committed Aug 8, 2024
1 parent 7e14caf commit 1c4372c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fiscaliza/attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
options=["", "0", "1"],
mapping={
"0": ["justificativa_da_improcedencia"],
"1": ["interferencia_sanada"],
"1": ["interferencia_sanada", "local_interf_confere_indicado"],
},
),
"frequencia_inicial": SimpleField(156, "Frequência inicial:", True, _dtype="float"),
Expand Down Expand Up @@ -150,6 +150,7 @@
"Interferência sanada?",
mandatory=True,
options=[
"",
"Sim, confirmado pelo denunciante",
"Sim, sem confirmação pelo denunciante",
"Não",
Expand All @@ -170,6 +171,7 @@
1968,
"Justificativa da Improcedência:",
options=[
"",
"Reclamante informou que interferência cessou",
"Dados obtidos indicam que interferência não procede",
"Não foi constatada portadora interferente em campo",
Expand All @@ -186,6 +188,12 @@
# "lai_vinculadas": SimpleField(481, "LAI vinculadas"),
"latitude_coordenadas": SimpleField(170, "Latitude (º):", True),
"latitude_da_estacao": SimpleField(191, "Latitude da estação (º):", True),
"local_interf_confere_indicado": FieldWithOptions(
1972,
"Local interferência confere indicado?",
mandatory=True,
options=["", "Sim", "Não", "Parcialmente", "Não se aplica"],
),
"longitude_coordenadas": SimpleField(171, "Longitude (º):", True),
"longitude_da_estacao": SimpleField(192, "Longitude da estação (º):", True),
"motivo_de_lai": FieldWithOptions(
Expand Down

0 comments on commit 1c4372c

Please sign in to comment.