test list_package_installs

main
vitrinekast 8 months ago
parent 9feac31ddf
commit d827f3e3bf

@ -79,7 +79,8 @@ output = template.render(
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_upgrade=fallback,
list_package_remove=list_package_remove, # list_package_remove=list_package_remove,
list_package_remove=fallback,
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,
kitchen_services = kitchen_services, kitchen_services = kitchen_services,

@ -148,7 +148,7 @@ user_deleted : {{ user_deleted }}
{{ log_output(list_package_installs) }} {{ log_output(list_package_installs) }}
{% if list_package_installs|length < 1 %} {% if list_package_installs|length = 0 %}
<mark> <mark>
Today no new packages were installed... Today no new packages were installed...
</mark> </mark>
@ -162,12 +162,12 @@ user_deleted : {{ user_deleted }}
</mark> </mark>
{{ log_output(list_package_upgrade) }} {{ log_output(list_package_upgrade) }}
<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>
{% endif %} {% else %}
{% if list_package_upgrade|length < 0 %} <mark> No existing packages were upgraded today.</mark>
<mark> Out of the installed packages, none were upgraded today...</mark>
{% endif %} {% endif %}
{% if list_package_remove|length > 0 %} {% if list_package_remove|length > 0 %}
@ -175,20 +175,18 @@ user_deleted : {{ user_deleted }}
<mark> <mark>
These package were removed today: These package were removed today:
</mark> </mark>
<ul>
{% for item in list_package_remove %} {{ log_output(list_package_remove) }}
<li>{{ item }}</li>
{% endfor %} <mark>
<mark> Packages could be removed because of consuming too much storage, not being used by the people who share the
Packages could be removed because of consuming too much storage, not being used by the people who share the server, or they are no longer secure. It is often good practice to 'do some spring cleaning' every now and
server, or they are no longer secure. It is often good practice to 'do some spring cleaning' every now and then and remove the packages that no longer serve you any purpose.
then and remove the packages that no longer serve you any purpose. </mark>
</mark>
<b>Does not show this last mark statement after the list</b> {% else %}
</ul> <mark>
{% endif %} No packages were removed today.
{% if list_package_remove|length < 0 %} <mark>
No packages were removed today...
</mark> </mark>
{% endif %} {% endif %}

Loading…
Cancel
Save