added site lister

This commit is contained in:
Kevin Froman 2020-02-05 01:49:24 -06:00
parent 4487bf2806
commit 3456fae533
7 changed files with 47 additions and 4 deletions

View file

@ -39,7 +39,7 @@ def find_site(user_id: str) -> Union[BlockHash, None]:
raise onionrexceptions.InvalidPubkey
found_site = None
sites = blockmetadb.get_blocks_by_type('zsite')
sites = blockmetadb.get_blocks_by_type('osite')
# Find site by searching all site blocks. eww O(N) ☹️, TODO: event based
for site in sites: