From a6f4bbc5edd3a3e268b59b6601ba1b7f15416613 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Sat, 1 Jun 2024 19:30:09 +0200 Subject: [PATCH] minor fixes/logs --- .../content_discovery_currently_popular_followers.py | 2 +- tests/discovery.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py index b430abe..83270e7 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py @@ -143,7 +143,7 @@ class DicoverContentCurrentlyPopularFollowers(DVMTaskInterface): if tag.as_vec()[0] == "p": following = PublicKey.parse(tag.as_vec()[1]) followings.append(following) - + print("[" + self.dvm_config.NIP89.NAME + "] Considering " + str(len(followings)) + " Followers") filter1 = Filter().kind(definitions.EventDefinitions.KIND_NOTE).authors(followings).since(since) events = self.client.database().query([filter1]) print("[" + self.dvm_config.NIP89.NAME + "] Considering " + str(len(events)) + " Events") diff --git a/tests/discovery.py b/tests/discovery.py index 0e2cfa5..124e986 100644 --- a/tests/discovery.py +++ b/tests/discovery.py @@ -393,10 +393,10 @@ def playground(): admin_config_followers = AdminConfig() admin_config_followers.REBROADCAST_NIP89 = rebbroadcast_NIP89 admin_config_followers.UPDATE_PROFILE = False - admin_config_followers.DELETE_NIP89 = False - admin_config_followers.PRIVKEY = "" - admin_config_followers.EVENTID = "" - admin_config_followers.POW = True + #admin_config_followers.DELETE_NIP89 = True + #admin_config_followers.PRIVKEY = "" + #admin_config_followers.EVENTID = "" + #admin_config_followers.POW = True custom_processing_msg = ["Processing popular notes from npubs you follow..", "Let's see what npubs you follow have been up to..", "Processing a personalized feed, just for you.."]