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