diff --git a/zanzocam/web_ui/pages.py b/zanzocam/web_ui/pages.py index 2f518d1..ab786e2 100644 --- a/zanzocam/web_ui/pages.py +++ b/zanzocam/web_ui/pages.py @@ -70,6 +70,7 @@ def logs_page(): percentage_occupancy = (total_logs_size / (total_logs_size + free_disk_space)) * 100 no_logs_dir = False + send_logs = read_flag_file(path=SEND_LOGS_FLAG, default=YES, catch_errors=True) logs_count=len(logs.keys()) logs_size=f"{(total_logs_size / 1024):.2f} KB" log_disk_occupancy=f"{percentage_occupancy:.4f}%" @@ -79,6 +80,7 @@ def logs_page(): logs=[] logs_count=0 logs_size="0 KB" + send_logs=True log_disk_occupancy="0.0000%" return render_template("logs.html", @@ -87,5 +89,6 @@ def logs_page(): no_logs_dir=no_logs_dir, logs=logs, logs_count=logs_count, + send_logs=send_logs, logs_size=logs_size, log_disk_occupancy=log_disk_occupancy) diff --git a/zanzocam/web_ui/templates/logs.html b/zanzocam/web_ui/templates/logs.html index d8a8fd9..8ef28e1 100644 --- a/zanzocam/web_ui/templates/logs.html +++ b/zanzocam/web_ui/templates/logs.html @@ -15,11 +15,11 @@