Skip to content
Snippets Groups Projects
Commit f600eb27 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Removed unused imports

parent 31e5c984
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!364Follower and following names validation and type check
"""Handles follow operations.""" """Handles follow operations."""
import logging import logging
from time import perf_counter as perf
from json import dumps
from funcy.seqs import first from funcy.seqs import first
from hive.db.adapter import Db from hive.db.adapter import Db
from hive.db.db_state import DbState
from hive.utils.misc import chunks from hive.utils.misc import chunks
from hive.indexer.accounts import Accounts from hive.indexer.accounts import Accounts
...@@ -74,7 +71,7 @@ class Follow(DbAdapterHolder): ...@@ -74,7 +71,7 @@ class Follow(DbAdapterHolder):
@classmethod @classmethod
def _validated_op(cls, account, op, date): def _validated_op(cls, account, op, date):
"""Validate and normalize the operation.""" """Validate and normalize the operation."""
if ( not 'what' in op if (not 'what' in op
or not isinstance(op['what'], list) or not isinstance(op['what'], list)
or not 'follower' in op or not 'follower' in op
or not 'following' in op): or not 'following' in op):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment