Skip to content

Commit

Permalink
Added TimeSeries metadata to folderitems for frontend usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejmets committed Sep 6, 2024
1 parent f290805 commit ae8e321
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bika/lims/browser/analyses/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,12 @@ def _folder_item_result(self, analysis_brain, item):
"Enter the result either in decimal or scientific "
"notation, e.g. 0.00005 or 1e-5, 10000 or 1e5")

if result_type == "timeseries":
item["time_series_columns"] = [o['ColumnTitle'] for o in obj.getTimeSeriesColumns()]
item["time_series_graph_title"] = obj.getGraphTitle()
item["time_series_graph_xaxis"] = obj.getGraphXAxisTitle()
item["time_series_graph_yaxis"] = obj.getGraphYAxisTitle()

if not result:
return

Expand Down

0 comments on commit ae8e321

Please sign in to comment.