syntax fixes in neofs_verbs.py

Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
anastasia prasolova 2022-04-04 13:45:00 +03:00 committed by Anastasia Prasolova
parent 7a21456201
commit 040f648c61

View file

@ -190,8 +190,7 @@ def search_object(wif: str, cid: str, keys: str="", bearer: str="", filters: dic
if filters: if filters:
filters_result += "--filters " filters_result += "--filters "
logger.info(filters) logger.info(filters)
for key, value in filters.items(): filters_result += ','.join(map(lambda i: f"'{i} EQ {filters[i]}'", filters))
filters_result += f"'{key} EQ {value}' "
cmd = ( cmd = (
f'{NEOFS_CLI_EXEC} --rpc-endpoint {NEOFS_ENDPOINT} --wallet {wif} ' f'{NEOFS_CLI_EXEC} --rpc-endpoint {NEOFS_ENDPOINT} --wallet {wif} '