Persistent notifications.

This commit is contained in:
tecnovert
2022-10-13 22:21:43 +02:00
parent 7e4dd125e1
commit eb9eb49bd9
8 changed files with 145 additions and 71 deletions

View File

@@ -121,6 +121,9 @@ class HttpHandler(BaseHTTPRequestHandler):
if swap_client.debug:
swap_client.log.error(traceback.format_exc())
if swap_client._show_notifications:
args_dict['notifications'] = swap_client.getNotifications()
self.putHeaders(200, 'text/html')
return bytes(template.render(
title=self.server.title,