Fixed flush_db_tarantool, not it removes also from blocks spaces

This commit is contained in:
andrei 2022-06-08 12:18:01 +03:00
parent 717d5af8be
commit a94946ef66

View File

@ -39,7 +39,7 @@ def flush_tarantool_db(connection, dbname):
for _id in _all_data:
if "assets" == s:
connection.run(connection.space(s).delete(_id[1]), only_data=False)
elif "abci_chains" == s:
elif s in ["blocks", "abci_chains"]:
connection.run(connection.space(s).delete(_id[2], only_data=False))
else:
connection.run(connection.space(s).delete(_id[0], only_data=False))