2
0
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:
Matthias Mair
2026-03-17 14:00:33 +01:00
committed by GitHub
parent 84cd81d9a8
commit ab116309b3

View File

@@ -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