commit
5b79d029da
1 changed files with 1 additions and 3 deletions
|
|
@ -212,7 +212,7 @@ def getModelAttributeDefinitions(modelClass: Type[BaseModel] = None, userLanguag
|
|||
description = str(field_info.description)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
attributes.append(
|
||||
{
|
||||
"name": name,
|
||||
|
|
@ -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