Manually index the key

This commit is contained in:
Reid 'arrdem' McKenzie 2022-11-26 22:52:13 -07:00
parent b1a78da719
commit ca10da03b3

View file

@ -27,7 +27,7 @@ def register_route(method, path):
@register_route("GET", "/")
async def home(request):
following = "<ul>" + ("\n".join(f"<li>{it}</li>" for it in request.app.database.hostnames)) + "</ul>"
following = "<ul>" + ("\n".join(f"<li>{it}</li>" for it in request.app.database["relay-list"])) + "</ul>"
following_count = len(request.app.database.hostnames)
requested = "<ul>" + ("\n".join(f"<li>{it}</li>" for it in request.app.database["follow-requests"])) + "</ul>"
requested_count = len(request.app.database["follow-requests"])