From fd38090ee5440ccbd90a1e2bc22c09791f239d9c Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 23 Jan 2024 10:32:14 +0100 Subject: [PATCH] TMSS-2886: auto refresh --- SAS/TMSS/backend/src/tmss/tmssapp/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/views.py b/SAS/TMSS/backend/src/tmss/tmssapp/views.py index 8291fe5a4ca..9dbdcd912a4 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/views.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/views.py @@ -815,7 +815,8 @@ def public_schedule(request): background-color: #DDDDDD; } </style> - <title>LOFAR observing schedule</title> + <title>LOFAR observing schedule %sUTC</title> + <meta http-equiv="refresh" content="60"> </head> <body> <table> @@ -823,7 +824,7 @@ def public_schedule(request): </table> </body> </html> - ''' % (table_rows,) + ''' % (datetime.utcnow().strftime("%Y-%m-%d %H:%M"), table_rows,) return HttpResponse(html_doc, content_type='text/html') -- GitLab