Skip to content
Snippets Groups Projects
Commit 361baea4 authored by yamijuan's avatar yamijuan
Browse files

improved list slice on clean_app_config function

parent 64f2e479
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ def clean_app_config(app_path): ...@@ -27,7 +27,7 @@ def clean_app_config(app_path):
return app_path return app_path
else: else:
app_split = app_path.split('.') app_split = app_path.split('.')
new_app = '.'.join(app_split[:len(app_split) - 2]) new_app = '.'.join(app_split[:-2])
if new_app in apps_names: if new_app in apps_names:
return new_app return new_app
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment