From 8cb9ebb95db9fb2669f084803e5f82a70ac40600 Mon Sep 17 00:00:00 2001 From: Dariusz Kedzierski <dkedzierski@syncad.com> Date: Sun, 8 Nov 2020 17:24:48 +0100 Subject: [PATCH] Revert exists method to its original form. List check is not needed there --- hive/indexer/accounts.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hive/indexer/accounts.py b/hive/indexer/accounts.py index 7af31b4c4..98c4f862d 100644 --- a/hive/indexer/accounts.py +++ b/hive/indexer/accounts.py @@ -83,8 +83,6 @@ class Accounts(DbAdapterHolder): """Check if an account name exists.""" if isinstance(names, str): return names in cls._ids - if isinstance(names, list): - return all(name in cls._ids for name in names) return False @classmethod -- GitLab