From 1356145026a8673b192bcb632f272a4aa819b5d5 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Mon, 28 Mar 2022 08:37:53 +0200 Subject: Add ogServer uptime to the dashboard ogServer GET /stats returns ogServer uptime in seconds. Transform seconds to days, hours and minutes and print them in the dashboard. --- ogcp/templates/dashboard.html | 8 ++++++++ ogcp/views.py | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'ogcp') diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index a84ae4d..e1d9dc4 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -21,6 +21,14 @@

{{ time_dict['boot'] }}

+