test list_package_upgrade

main
vitrinekast 8 months ago
parent a20e1f3304
commit 9feac31ddf

@ -76,9 +76,9 @@ output = template.render(
# users_created_today=users_created_today, # users_created_today=users_created_today,
users_created_today=fallback, users_created_today=fallback,
since_last_boot=since_last_boot, since_last_boot=since_last_boot,
# list_package_installs=list_package_installs, list_package_installs=list_package_installs,
list_package_installs = [], # list_package_upgrade=list_package_upgrade,
list_package_upgrade=list_package_upgrade, list_package_upgrade=fallback,
list_package_remove=list_package_remove, list_package_remove=list_package_remove,
device_info=device_info, device_info=device_info,
days_since_last_boot = time_since_last_boot.days, days_since_last_boot = time_since_last_boot.days,

@ -148,22 +148,20 @@ user_deleted : {{ user_deleted }}
{{ log_output(list_package_installs) }} {{ log_output(list_package_installs) }}
{% if list_package_installs|length < 0 %} <mark> {% if list_package_installs|length < 1 %}
<mark>
Today no new packages were installed... Today no new packages were installed...
</mark> </mark>
{% endif %} {% endif %}
{% if list_package_upgrade|length > 0 %} {% if list_package_upgrade|length > 0 %}
<p><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</p> <p><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</p>
<b>Something here in the if statement is not working</b>
<mark> <mark>
Out of the installed packages, these ones were upgraded: Out of the installed packages, these ones were upgraded:
</mark> </mark>
<ul>
{% for item in list_package_upgrade %} {{ log_output(list_package_upgrade) }}
<li>{{ item }}</li>
{% endfor %}
</ul>
<mark> <mark>
Packages are upgraded to fix Previous bugs they had, or allow new options for usage they did not have prior. Packages are upgraded to fix Previous bugs they had, or allow new options for usage they did not have prior.
</mark> </mark>

Loading…
Cancel
Save