Commit cd47d2e6 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[databases] Update list_index_files to use new paradigm

parent 6cea04c2
......@@ -463,15 +463,11 @@ def list_index_files(configuration, names):
continue
for protocol_name, set_name, db_set in sets:
for output_name in db_set['outputs'].keys():
index_hash = database.hash_output(
protocol_name, set_name, output_name)
index_filename = os.path.join(configuration.cache,
toPath(index_hash, '.index'))
basename = os.path.splitext(index_filename)[0]
for g in glob.glob(basename + '.*'):
logger.info(g)
dataset_hash = hashDataset(db_name, protocol_name, set_name)
index_filename = toPath(dataset_hash)
basename = os.path.splitext(index_filename)[0]
for g in glob.glob(basename + '.*'):
logger.info(g)
return retcode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment