FIX: len for modules check
This commit is contained in:
@ -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 += [
|
||||
|
Reference in New Issue
Block a user