Manually index the key
This commit is contained in:
parent
b1a78da719
commit
ca10da03b3
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ def register_route(method, path):
|
||||||
|
|
||||||
@register_route("GET", "/")
|
@register_route("GET", "/")
|
||||||
async def home(request):
|
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)
|
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 = "<ul>" + ("\n".join(f"<li>{it}</li>" for it in request.app.database["follow-requests"])) + "</ul>"
|
||||||
requested_count = len(request.app.database["follow-requests"])
|
requested_count = len(request.app.database["follow-requests"])
|
||||||
|
|
Loading…
Reference in a new issue