check more follower lists

This commit is contained in:
Believethehype 2024-04-21 11:10:57 +02:00
parent 17d2bfca3c
commit b1202e915e
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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