From b1202e915e7ac8c6fae50f89efb13039c1c8b4bd Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Sun, 21 Apr 2024 11:10:57 +0200 Subject: [PATCH] check more follower lists --- .../tasks/content_discovery_currently_popular_followers.py | 2 +- nostr_dvm/tasks/discovery_inactive_follows.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py index 40c2757..307391f 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular_followers.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular_followers.py @@ -102,7 +102,7 @@ class DicoverContentCurrentlyPopularFollowers(DVMTaskInterface): cli.connect() user = PublicKey.parse(options["user"]) - followers_filter = Filter().author(user).kinds([Kind(3)]).limit(1) + followers_filter = Filter().author(user).kinds([Kind(3)]) followers = cli.get_events_of([followers_filter], timedelta(seconds=self.dvm_config.RELAY_TIMEOUT)) print(followers) diff --git a/nostr_dvm/tasks/discovery_inactive_follows.py b/nostr_dvm/tasks/discovery_inactive_follows.py index a3ef6cd..bdf31aa 100644 --- a/nostr_dvm/tasks/discovery_inactive_follows.py +++ b/nostr_dvm/tasks/discovery_inactive_follows.py @@ -80,9 +80,10 @@ class DiscoverInactiveFollows(DVMTaskInterface): options = DVMTaskInterface.set_options(request_form) step = 20 - followers_filter = Filter().author(PublicKey.from_hex(options["user"])).kind(Kind(3)).limit(1) + followers_filter = Filter().author(PublicKey.from_hex(options["user"])).kind(Kind(3)) followers = cli.get_events_of([followers_filter], timedelta(seconds=self.dvm_config.RELAY_TIMEOUT)) + if len(followers) > 0: result_list = [] newest = 0