Skip to content

Commit

Permalink
Fixed #1224 - better handle result type in UI which can be timeseries…
Browse files Browse the repository at this point in the history
… or timeseries_readonly
  • Loading branch information
mikejmets committed Dec 8, 2024
1 parent 6db9dd9 commit 28903ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def folderitems(self):
newitems = []
cats = []
for item in items:
if item.get("result_type") != "timeseries":
if not item.get("result_type").startswith("timeseries"):
newitems.append(item)
if item["category"] not in cats:
cats.append(item["category"])
Expand Down
2 changes: 1 addition & 1 deletion src/senaite/timeseries/browser/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def folderitems(self):
newitems = []
cats = []
for item in items:
if item.get("result_type") == "timeseries":
if item.get("result_type").startswith("timeseries"):
newitems.append(item)
if item["category"] not in cats:
cats.append(item["category"])
Expand Down

0 comments on commit 28903ef

Please sign in to comment.