Skip to content

Commit 9dd97e5

Browse files
author
stephanie
committed
fix typo
1 parent 41d348d commit 9dd97e5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

odm2api/ODM2/services/readService.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def getDetailedAffiliationInfo(self):
180180
return affiliationList
181181

182182
def getDetailedResultInfo(self, resultTypeCV=None, resultID=None, sfID=None):
183+
#TODO can this be done by just getting the result object and drilling down? what is the performance comparison
183184
q = self._session.query(Actions, Results, SamplingFeatures.SamplingFeatureCode, SamplingFeatures.SamplingFeatureName, Methods, Variables,
184185
ProcessingLevels, Units).filter(Results.VariableID == Variables.VariableID) \
185186
.filter(Results.UnitsID == Units.UnitsID) \
@@ -194,7 +195,7 @@ def getDetailedResultInfo(self, resultTypeCV=None, resultID=None, sfID=None):
194195
if sfID:
195196
q= q.filter(SamplingFeatures.SamplingFeatureID == sfID)
196197
if resultID:
197-
q= q.q.filter_by(ResultID=resultID)
198+
q= q.filter_by(ResultID=resultID)
198199

199200
for a, r, sc, sn, m, v, p, u in q.all():
200201
detailedResult = DetailedResult( \

0 commit comments

Comments
 (0)