mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 11:05:41 +00:00
Remove unneeded AjaxView usage (#8461)
* remove unneeded AjaxView usage * add schema * bump schema version * make schema more acurate * exclude not found view * make script also axept base api
This commit is contained in:
@ -44,7 +44,8 @@ def top_level_path(path: str) -> str:
|
||||
|
||||
path = path.strip()
|
||||
|
||||
key = path.split('/')[1]
|
||||
parts = path.split('/')
|
||||
key = parts[1] if len(parts) > 1 else parts[0]
|
||||
|
||||
if key in SPECIAL_PATHS:
|
||||
return key
|
||||
|
Reference in New Issue
Block a user