FIX: len for modules check

This commit is contained in:
Germann Elsa Sylvia
2023-02-24 10:00:58 +01:00
parent 15f0486d18
commit b8ef29174a

View File

@ -28,10 +28,10 @@ def asciidoc_json_dump(list, name, steps, Pmodules_db_path):
matrix_db = temp_matrix_db
# Update the database for new changes
if len(list) > 1:
if len(list) != 0:
list_range = len(list) - steps + 1
for index in range(0, list_range, steps):
if len(list[index]) > 1:
if len(list[index]) != 0:
matrix_row = [list[index].split()[0]]
if steps == 2:
matrix_row += [