removed TODO from get_owned_ids [TESTED]

This commit is contained in:
andrei 2022-02-14 12:16:18 +02:00
parent c1dd754722
commit 3bba5d4d60

View File

@ -246,7 +246,7 @@ def _remove_text_score(asset):
@register_query(LocalMongoDBConnection)
def get_owned_ids(connection, owner: str): # TODO To make a test
def get_owned_ids(connection, owner: str):
space = connection.space("keys")
_keys = space.select(owner, index="keys_search", limit=1)
if len(_keys.data) == 0: