We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 855cf17 + 4cac7d9 commit f82423bCopy full SHA for f82423b
1 file changed
odmtools/odmdata/memory_database.py
@@ -74,11 +74,16 @@ def getDataValuesDF(self):
74
logging.debug("done updating memory dataframe")
75
return self.df
76
77
- def get_annotations(self):
78
- result_id = self.df.resultid[0]
+
+ def get_annotations(self, query_db_again=False):
79
+ # self.mem_service._session.commit()
80
setSchema(self.series_service._session_factory.engine)
- annotation = self.series_service.get_annotations_by_result(resultid=result_id)
81
- self.results_annotations = annotation
+ if self.results_annotations is None or query_db_again:
82
+ result_id = self.df.resultid[0]
83
+ annotation = self.series_service.get_annotations_by_result(resultid=result_id)
84
+ self.results_annotations = annotation
85
86
87
return self.results_annotations
88
89
def getDataValues(self):
0 commit comments