@@ -703,11 +703,11 @@ def getDataSets(self, codes=None, uuids=None):
703703 print ('Error running Query {}' .format (e ))
704704 return None
705705
706- def getSamplingFeatureDatasets (self , ids = None , codes = None , uuids = None , type = None ):
706+ def getSamplingFeatureDatasets (self , ids = None , codes = None , uuids = None , dstype = None ):
707707 """Retrieve a list of Sampling Feature objects.
708708 Retrieve a list of Datasets associated with the given sampling feature data.
709709
710- >>>Must specify either samplingFeatureID OR samplingFeatureUUID OR samplingFeatureCode)
710+ >>> Must specify either samplingFeatureID OR samplingFeatureUUID OR samplingFeatureCode)
711711
712712 Args:
713713 ids (list, optional): List of SamplingFeatureIDs.
@@ -726,7 +726,7 @@ def getSamplingFeatureDatasets(self, ids=None, codes=None, uuids=None, type=None
726726 >>> READ.getSamplingFeatureDatasets(codes=['HOME', 'FIELD'])
727727 >>> READ.getSamplingFeatureDatasets(uuids=['a6f114f1-5416-4606-ae10-23be32dbc202',
728728 ... '5396fdf3-ceb3-46b6-aaf9-454a37278bb4'])
729- >>> READ.getSamplingFeatureDatasets(type ='singleTimeSeries')
729+ >>> READ.getSamplingFeatureDatasets(dstype ='singleTimeSeries')
730730
731731 """
732732
@@ -751,8 +751,8 @@ def getSamplingFeatureDatasets(self, ids=None, codes=None, uuids=None, type=None
751751 .join (FeatureActions )\
752752 .filter (FeatureActions .SamplingFeatureID .in_ (sf_list ))
753753
754- if type :
755- q = q .filter_by (DatasetTypeCV = type )
754+ if dstype :
755+ q = q .filter_by (DatasetTypeCV = dstype )
756756
757757 try :
758758 return q .all ()
0 commit comments