Skip to content

Commit c493d61

Browse files
committed
Fix mistype
1 parent edb02fa commit c493d61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

odm2api/ODM2/services/readService.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ def getRelatedModels(self, modid=None, code=None, **kwargs):
14131413
if 'id' in kwargs:
14141414
warnings.warn('The parameter \'id\' is deprecated. Please use the modid parameter instead.',
14151415
DeprecationWarning, stacklevel=2)
1416-
modid = kwargs['type']
1416+
modid = kwargs['id']
14171417
m = self._session.query(Models).select_from(RelatedModels).join(RelatedModels.ModelObj)
14181418
if modid:
14191419
m = m.filter(RelatedModels.ModelID == modid)

0 commit comments

Comments
 (0)