We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f520fe9 commit a10ff04Copy full SHA for a10ff04
tiled/server/schemas.py
@@ -175,8 +175,7 @@ class DataSource(BaseModel, Generic[StructureT]):
175
@classmethod
176
def from_orm(cls, orm: tiled.catalog.orm.DataSource) -> DataSource:
177
if hasattr(orm.structure, "structure"):
178
- structure_cls = STRUCTURE_TYPES[orm.structure_family]
179
- structure = structure_cls.from_json(orm.structure.structure)
+ structure = orm.structure.structure
180
else:
181
structure = None
182
return cls(
0 commit comments