level argument is now used to isolate one level

This commit is contained in:
waldek 2021-10-21 14:51:57 +02:00
parent 199ddd82dc
commit ec675e3e07
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ def level_logic(level, difficulty):
if level is None and difficulty is None: if level is None and difficulty is None:
level = "lpic1_part1" level = "lpic1_part1"
elif level is not None: elif level is not None:
level = LEVELS[0:LEVELS.index(DIFFICULTY[level]) + 1] # level = LEVELS[0:LEVELS.index(DIFFICULTY[level]) + 1]
level = (level)
elif difficulty is not None: elif difficulty is not None:
level = LEVELS[0:LEVELS.index(DIFFICULTY[difficulty]) + 1] level = LEVELS[0:LEVELS.index(DIFFICULTY[difficulty]) + 1]
return level return level