fixes
This commit is contained in:
parent
1d9a1d7613
commit
942be435e3
1 changed files with 1 additions and 3 deletions
|
|
@ -275,11 +275,9 @@ def getModelClasses() -> Dict[str, Type[BaseModel]]:
|
|||
if fileName.startswith("datamodel") and fileName.endswith(".py"):
|
||||
# Convert fileName to module name (e.g., datamodelUtils.py -> datamodelUtils)
|
||||
module_name = fileName[:-3]
|
||||
|
||||
try:
|
||||
# Import the module dynamically
|
||||
module = importlib.import_module(f"modules.datamodels.{module_name}")
|
||||
|
||||
# Get all classes from the module
|
||||
for name, obj in inspect.getmembers(module):
|
||||
if (
|
||||
|
|
|
|||
Loading…
Reference in a new issue