Skip to content

Commit

Permalink
Fix form and corrupted data
Browse files Browse the repository at this point in the history
  • Loading branch information
smolnar committed May 6, 2024
1 parent 60e95e2 commit 3f88624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/mappers/obcan_justice_sk/decree_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def court
end

def judges
return [] unless data[:sudca] || data[:sudca][:meno]

name = data[:sudca][:meno]

[ObcanJusticeSk::Normalizer.normalize_person_name(name)]
Expand Down
7 changes: 4 additions & 3 deletions lib/obcan_justice_sk/decrees.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module Decrees
'Platobný rozkaz',
'Príkaz',
'Rozhodnutie',
'Rozkaz na plnenie',
'Rozsudok bez odôvodnenia',
'Rozsudok pre uznanie',
'Rozsudok pre vzdanie',
Expand All @@ -59,7 +60,8 @@ module Decrees
'Trestný rozkaz',
'Uznesenie bez odôvodnenia',
'Uznesenie',
'Výzva'
'Výzva',
'Zmenkový platobný rozkaz'
]
},
povaha: {
Expand Down Expand Up @@ -103,8 +105,7 @@ module Decrees
meno: {
type: :string
}
},
required: %i[registreGuid meno]
}
},
identifikacneCislo: {
type: :string
Expand Down

0 comments on commit 3f88624

Please sign in to comment.