mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-29 18:16:43 +00:00
fix: localize empty important package lists
This commit is contained in:
@@ -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 '',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user