Skip to content

Commit 361baea

Browse files
committed
improved list slice on clean_app_config function
1 parent 64f2e47 commit 361baea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

menu_generator/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def clean_app_config(app_path):
2727
return app_path
2828
else:
2929
app_split = app_path.split('.')
30-
new_app = '.'.join(app_split[:len(app_split) - 2])
30+
new_app = '.'.join(app_split[:-2])
3131
if new_app in apps_names:
3232
return new_app
3333
else:

0 commit comments

Comments
 (0)