mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-03 10:01:07 +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):
|
if any(cmd in sys.argv for cmd in excluded_commands):
|
||||||
return False
|
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
|
return True
|
||||||
|
|
||||||
# This is a very inefficient call - so we only use it as a last resort
|
# This is a very inefficient call - so we only use it as a last resort
|
||||||
|
|||||||
Reference in New Issue
Block a user