Skip to content

Commit

Permalink
webui: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
glwntd committed Dec 19, 2024
1 parent 046c03a commit f96a44d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pyglossary/ui/ui_web/server_ws_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,17 +434,6 @@ def do_GET(self):
else:
super().do_GET()

def send_page(self, template_path, placeholder, content):
self.send_response(HTTPStatus.OK)
self.send_header("Content-Type", "text/html")
self.end_headers()
page = (
Path(Path(__file__).parent / template_path)
.read_text(encoding="utf-8")
.replace(placeholder, content)
)
self.wfile.write(page.encode())

def send_config(self):
self.send_response(HTTPStatus.OK)
self.send_header("Content-Type", "application/json")
Expand Down

0 comments on commit f96a44d

Please sign in to comment.