Commit b2db06da authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor fixes.

parent be959bde
Pipeline #74373 passed with stages
in 22 minutes and 33 seconds
......@@ -608,7 +608,7 @@ def query_archive(f_or_archive_reader: Union[str, ArchiveReader, BytesIO], query
pass
else:
length = len(archive_child)
if isinstance(index, list):
if isinstance(index, tuple):
index = (_fix_index(index[0], length), _fix_index(index[1], length))
if index[0] == index[1]:
archive_child = [archive_child[index[0]]]
......
......@@ -271,8 +271,11 @@ class ArchiveQuery(collections.abc.Sequence):
section_run_key = next(key for key in required if key.split('[')[0] == 'section_run')
if section_run_key is not None:
# add all quantities in required to the query part
quantities = set()
stack = [required[section_run_key]]
quantities = {'section_run'}
stack = []
section_run = required[section_run_key]
if isinstance(section_run, dict):
stack.append(section_run)
while len(stack) > 0:
required_dict = stack.pop()
for key, value in required_dict.items():
......
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