fix: localize empty important package lists

This commit is contained in:
VAIO73
2026-09-17 13:17:08 +02:00
parent 661b944e0c
commit 82c3a49f4c
3 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -3517,7 +3517,9 @@ class PollingCollector:
'security_count': str(len(security_pkgs)),
'pve_count': str(len(pve_pkgs)),
'kernel_count': str(len(kernel_pkgs)),
'important_list': '\n'.join(f' \u2022 {l}' for l in important_lines) if important_lines else 'none',
# An empty value is intentionally rendered later by the
# notification template as the selected locale's “none”.
'important_list': '\n'.join(f' \u2022 {l}' for l in important_lines),
'package_list': ', '.join(important_lines[:6]) if important_lines else '',
}