mirror of
https://github.com/inventree/InvenTree.git
synced 2026-03-21 11:44:42 +00:00
chore(backend): fix isGenerating detection (#11548)
This commit is contained in:
@@ -128,7 +128,15 @@ def isGeneratingSchema():
|
||||
if any(cmd in sys.argv for cmd in excluded_commands):
|
||||
return False
|
||||
|
||||
if 'schema' in sys.argv:
|
||||
included_commands = [
|
||||
'schema',
|
||||
# schema adjacent calls
|
||||
'export_settings_definitions',
|
||||
'export_tags',
|
||||
'export_filters',
|
||||
'export_report_context',
|
||||
]
|
||||
if any(cmd in sys.argv for cmd in included_commands):
|
||||
return True
|
||||
|
||||
# This is a very inefficient call - so we only use it as a last resort
|
||||
|
||||
Reference in New Issue
Block a user