|
|
|
@ -67,13 +67,14 @@ env = Environment(loader=FileSystemLoader("/home/xpub/www/html/tl-dr/templates")
|
|
|
|
|
|
|
|
|
|
# loading the template (use template.jinja when generating the html webview)
|
|
|
|
|
template = env.get_template("book.jinja")
|
|
|
|
|
|
|
|
|
|
fallback = list_package_installs
|
|
|
|
|
# rendering the template and storing the resultant text in variable output
|
|
|
|
|
output = template.render(
|
|
|
|
|
now = now.strftime("%B %dth %Y"),
|
|
|
|
|
last_user_added=last_user_added.stdout.decode('UTF-8'),
|
|
|
|
|
last_user_added_name=last_user_added_name,
|
|
|
|
|
users_created_today=users_created_today,
|
|
|
|
|
# users_created_today=users_created_today,
|
|
|
|
|
users_created_today=fallback,
|
|
|
|
|
since_last_boot=since_last_boot,
|
|
|
|
|
list_package_installs=list_package_installs,
|
|
|
|
|
list_package_upgrade=list_package_upgrade,
|
|
|
|
|