Parse our list members
Signed-off-by: Markus Birth <markus@birth-online.de>
This commit is contained in:
@@ -105,6 +105,15 @@ def main():
|
||||
task_bsky_list = prog.add_task(f"Loading list with id [bold white]{config['BlueSky']['ListId']}")
|
||||
blocklist = blocker.get_list(config["BlueSky"]["ListId"], lambda cur, tot: prog.update(task_bsky_list, completed=cur, total=tot))
|
||||
print(f"Loaded list: [bold green]{blocklist['list']['name']}[/bold green] with [bold yellow]{len(blocklist['items'])}[/bold yellow] entries.")
|
||||
|
||||
did_map = {}
|
||||
already_blocked = set()
|
||||
to_block = set()
|
||||
|
||||
for item in blocklist["items"]:
|
||||
item_did = item["subject"]["did"]
|
||||
already_blocked.add(item_did)
|
||||
did_map[item_did] = item["subject"]["handle"]
|
||||
|
||||
"""
|
||||
cs = ClearSky(blocker.did)
|
||||
|
||||
Reference in New Issue
Block a user