Fixed cpl query update
This commit is contained in:
@@ -88,7 +88,7 @@ class LevelSeeder(DataSeederABC):
|
||||
if levels.where(lambda l: l.name == role.name).count() == 0:
|
||||
continue
|
||||
|
||||
new_position = position_above_levels - (levels.index(levels.where(lambda l: l.name == role.name).single()) + 1)
|
||||
new_position = position_above_levels - (levels.index_of(levels.where(lambda l: l.name == role.name).single()) + 1)
|
||||
if new_position <= 0:
|
||||
new_position = 1
|
||||
try:
|
||||
|
Reference in New Issue
Block a user