Skip to content

Commit 908da54

Browse files
committed
Fixing typo for taxonomicclassifier and adding a method to return all taxonomicclassifiers:
1 parent 1c3ec34 commit 908da54

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/api/ODM2/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ class TaxonomicClassifiers(Base):
639639
__table_args__ = {u'schema': 'odm2'} # __table_args__ = {u'schema': Schema.getSchema()}
640640

641641
TaxonomicClassifierID = Column('taxonomicclassifierid', Integer, primary_key=True, nullable=False)
642-
TaxonomicClassifierTypeCV = Column('taxonomicclassifiertypcv', ForeignKey(CVTaxonomicClassifierType.Name),
642+
TaxonomicClassifierTypeCV = Column('taxonomicclassifiertypecv', ForeignKey(CVTaxonomicClassifierType.Name),
643643
nullable=False, index=True)
644644
TaxonomicClassifierName = Column('taxonomicclassifiername', String(255),
645645
nullable=False)

src/api/ODM2/services/readService.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ def getDetailedResultInfo(self, resultTypeCV, resultID=None):
198198
resultList.append(detailedResult)
199199
return resultList
200200

201+
"""
202+
Taxonomic Classifiers
203+
"""
204+
205+
def getTaxonomicClassifiers(self):
206+
return self._session.query(TaxonomicClassifiers).all()
207+
208+
201209
"""
202210
Variable
203211
"""

0 commit comments

Comments
 (0)