Skip to content
Snippets Groups Projects
Commit 59ddddbc authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(metadata): fetch proper channels from legacy

parent 1ccd6313
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ def get_meta_swainlab(parsed_metadata: dict): ...@@ -148,7 +148,7 @@ def get_meta_swainlab(parsed_metadata: dict):
def get_meta_from_legacy(parsed_metadata: dict): def get_meta_from_legacy(parsed_metadata: dict):
channels = parsed_metadata["channels"]["channel"] channels = parsed_metadata["channels/channel"]
return {"channels": channels} return {"channels": channels}
...@@ -173,7 +173,7 @@ def parse_swainlab_metadata(filedir: t.Union[str, PosixPath]): ...@@ -173,7 +173,7 @@ def parse_swainlab_metadata(filedir: t.Union[str, PosixPath]):
else: else:
if filedir.is_file(): if filedir.is_file():
filedir = filedir.parent filedir = filedir.parent
legacy_parse = parse_logfiles(filedir.parent) legacy_parse = parse_logfiles(filedir)
minimal_meta = get_meta_from_legacy(legacy_parse) minimal_meta = get_meta_from_legacy(legacy_parse)
return minimal_meta return minimal_meta
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment