Fixed services status display.

This commit is contained in:
Marat Fayzullin 2025-02-09 18:01:42 -05:00
parent 62b98ca40c
commit fec9b714a5
1 changed files with 3 additions and 3 deletions

View File

@ -78,19 +78,19 @@ class ServiceController(AuthorizationMixin, WebpageController):
if ts > 0: if ts > 0:
ts = ServiceController.renderTime(ts) ts = ServiceController.renderTime(ts)
result += "<div style='color:#00FF00;text-align:center;'>Server started at {0}.</div>\n".format(ts) result += "<div style='color:#00FF00;text-align:center;'>Server started at {0}.</div>\n".format(ts)
ts = EIBI.lastDownloaded() ts = EIBI.getSharedInstance().lastDownloaded()
if ts > 0: if ts > 0:
ts = ServiceController.renderTime(ts) ts = ServiceController.renderTime(ts)
result += "<div style='color:#00FF00;text-align:center;'>Shortwave schedule downloaded at {0}.</div>\n".format(ts) result += "<div style='color:#00FF00;text-align:center;'>Shortwave schedule downloaded at {0}.</div>\n".format(ts)
else: else:
result += "<div style='color:#FF0000;text-align:center;'>Shortwave schedule not downloaded.</div>\n" result += "<div style='color:#FF0000;text-align:center;'>Shortwave schedule not downloaded.</div>\n"
ts = Repeaters.lastDownloaded() ts = Repeaters.getSharedInstance().lastDownloaded()
if ts > 0: if ts > 0:
ts = ServiceController.renderTime(ts) ts = ServiceController.renderTime(ts)
result += "<div style='color:#00FF00;text-align:center;'>Repeaters database downloaded at {0}.</div>\n".format(ts) result += "<div style='color:#00FF00;text-align:center;'>Repeaters database downloaded at {0}.</div>\n".format(ts)
else: else:
result += "<div style='color:#FF0000;text-align:center;'>Repeaters database not downloaded.</div>\n" result += "<div style='color:#FF0000;text-align:center;'>Repeaters database not downloaded.</div>\n"
ts = Receivers.lastDownloaded() ts = Receivers.getSharedInstance().lastDownloaded()
if ts > 0: if ts > 0:
ts = ServiceController.renderTime(ts) ts = ServiceController.renderTime(ts)
result += "<div style='color:#00FF00;text-align:center;'>Receivers database downloaded at {0}.</div>\n".format(ts) result += "<div style='color:#00FF00;text-align:center;'>Receivers database downloaded at {0}.</div>\n".format(ts)