From f327252819c8a67027b1dca5522378c4b11a25a8 Mon Sep 17 00:00:00 2001 From: Dariusz Kedzierski <dkedzierski@syncad.com> Date: Tue, 10 Nov 2020 00:51:40 +0100 Subject: [PATCH] Removed unused imports --- hive/indexer/follow.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hive/indexer/follow.py b/hive/indexer/follow.py index 7d5a0d55e..3c66e56fc 100644 --- a/hive/indexer/follow.py +++ b/hive/indexer/follow.py @@ -1,12 +1,9 @@ """Handles follow operations.""" import logging -from time import perf_counter as perf -from json import dumps from funcy.seqs import first from hive.db.adapter import Db -from hive.db.db_state import DbState from hive.utils.misc import chunks from hive.indexer.accounts import Accounts @@ -74,7 +71,7 @@ class Follow(DbAdapterHolder): @classmethod def _validated_op(cls, account, op, date): """Validate and normalize the operation.""" - if ( not 'what' in op + if (not 'what' in op or not isinstance(op['what'], list) or not 'follower' in op or not 'following' in op): -- GitLab