diff --git a/script.py b/script.py index d85b938..5282e30 100644 --- a/script.py +++ b/script.py @@ -76,9 +76,9 @@ output = template.render( # users_created_today=users_created_today, users_created_today=fallback, since_last_boot=since_last_boot, - # list_package_installs=list_package_installs, - list_package_installs = [], - list_package_upgrade=list_package_upgrade, + list_package_installs=list_package_installs, + # list_package_upgrade=list_package_upgrade, + list_package_upgrade=fallback, list_package_remove=list_package_remove, device_info=device_info, days_since_last_boot = time_since_last_boot.days, diff --git a/templates/book.jinja b/templates/book.jinja index 21ad017..0154f20 100644 --- a/templates/book.jinja +++ b/templates/book.jinja @@ -148,22 +148,20 @@ user_deleted : {{ user_deleted }} {{ log_output(list_package_installs) }} - {% if list_package_installs|length < 0 %} + {% if list_package_installs|length < 1 %} + Today no new packages were installed... {% endif %} {% if list_package_upgrade|length > 0 %}

tldr@chopchop:~ $ grep 'upgrade' /var/log/dpkg.log

- Something here in the if statement is not working + Out of the installed packages, these ones were upgraded: - + + {{ log_output(list_package_upgrade) }} Packages are upgraded to fix Previous bugs they had, or allow new options for usage they did not have prior.