Währungen in Kleinbuchstaben und kleine Fixes
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
{{ with transform.Unmarshal .Content }}
|
||||
{{ if .items }}
|
||||
{{ range $record := .items }}
|
||||
{{ $pbCurrencies = $pbCurrencies | append (lower $record.id) }}
|
||||
{{ $pbCurrencies = $pbCurrencies | append $record.id }}
|
||||
{{ end }}
|
||||
{{ $pbOk = true }}
|
||||
{{ end }}
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
{{ if $pb.ok }}
|
||||
{{ $filtered := dict }}
|
||||
{{ range $slug, $data := $units }}
|
||||
{{ $slugLower := lower $slug }}
|
||||
{{ if or (eq $slugLower "eur") (in $pb.currencies $slugLower) }}
|
||||
{{ if or (eq $slug "eur") (in $pb.currencies $slug) }}
|
||||
{{ $filtered = merge $filtered (dict $slug $data) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user