Commit 8f6b944a authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[databases] Fixed local indexing

parent fb6f827c
......@@ -98,7 +98,7 @@ logger = logging.getLogger(__name__)
import simplejson
from beat.core.hash import hash, toPath, hashFileContents
from beat.core.hash import hash, toPath, hashFileContents, hashDataset
from beat.core.utils import NumpyJSONEncoder
from beat.core.database import Database
from beat.core.dataformat import DataFormat
......@@ -368,6 +368,14 @@ def index_outputs(configuration, names, uid=None, db_root=None, docker=False):
if view is None:
retcode += 1
continue
dataset_hash = hashDataset(db_name, protocol_name, set_name)
view.index(os.path.join(configuration.cache,
toPath(dataset_hash, '.db')))
# TODO: Remove when docker version is fixed:
continue
else:
(databases_container, db_socket, zmq_context, input_list) = \
start_db_container(
......
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