From 15961fc388ebc299959bd3dafd10e8d024b84049 Mon Sep 17 00:00:00 2001 From: Mint <> Date: Wed, 24 Aug 2022 00:25:31 +0300 Subject: [PATCH] . --- fetch_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch_blocks.py b/fetch_blocks.py index d2f7580..76ca647 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -208,7 +208,7 @@ for blocker, software in c.fetchall(): print(blocker) try: json = get_friendica_blocks(blocker) - for blocks in json.items(): + for block_level, blocks in json.items(): for instance in blocks: blocked, reason = instance.values() blocked == blocked.lower() @@ -232,7 +232,7 @@ for blocker, software in c.fetchall(): blocker, blocked, reason, - "reject", + block_level, ), ) conn.commit()