add option for multiple users in search, add first version of search ui

This commit is contained in:
Believethehype
2024-01-08 16:41:27 +01:00
parent db3e49f384
commit 7f928ae767
5 changed files with 248 additions and 13 deletions

View File

@@ -217,7 +217,7 @@ def fetch_user_metadata(npub, client):
pk = PublicKey.from_hex(npub)
print(f"\nGetting profile metadata for {pk.to_bech32()}...")
profile_filter = Filter().kind(0).author(pk).limit(1)
events = client.get_events_of([profile_filter], timedelta(seconds=5))
events = client.get_events_of([profile_filter], timedelta(seconds=1))
if len(events) > 0:
latest_entry = events[0]
latest_time = 0