replaced "has"

This commit is contained in:
2026-01-14 11:20:01 +01:00
parent 4a95b087ce
commit 1b8dd1661d
+8 -4
View File
@@ -473,11 +473,13 @@ data:
{{ $wtype = "Fog" }}
{{ $wicon = "fas fa-smog" }}
{{ $wcolor = $color_smog }}
{{ else if has $code [51 53 55 56 57] }}
{{/* Drizzle */}}
{{ else if or (eq $code 51) (eq $code 53) (eq $code 55) (eq $code 56) (eq $code 57) }}
{{ $wtype = "Drizzle" }}
{{ $wicon = "fas fa-cloud-rain" }}
{{ $wcolor = $color_drizzle }}
{{ else if has $code [61 63 65 80 81 82] }}
{{/* Rain */}}
{{ else if or (eq $code 61) (eq $code 63) (eq $code 65) (eq $code 80) (eq $code 81) (eq $code 82) }}
{{ $wtype = "Rain" }}
{{ $wicon = "fas fa-cloud-showers-heavy" }}
{{ $wcolor = $color_rain }}
@@ -485,11 +487,13 @@ data:
{{ $wtype = "Freezing Rain" }}
{{ $wicon = "fas fa-snowflake" }}
{{ $wcolor = $color_freezing_rain }}
{{ else if has $code [71 73 75 77 85 86] }}
{{/* Snow */}}
{{ else if or (eq $code 71) (eq $code 73) (eq $code 75) (eq $code 77) (eq $code 85) (eq $code 86) }}
{{ $wtype = "Snow" }}
{{ $wicon = "fas fa-snowman" }}
{{ $wcolor = $color_snow }}
{{ else if has $code [95 96 99] }}
{{/* Thunderstorm */}}
{{ else if or (eq $code 95) (eq $code 96) (eq $code 99) }}
{{ $wtype = "Thunderstorm" }}
{{ $wicon = "fas fa-bolt" }}
{{ $wcolor = $color_thunderstorm }}