Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions VERSIONLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TACA Version Log

## 20250812.1

Add back missed FlowcellRunMetricsConnection check in statusdb

## 20250717.1

Replace the CouchDB package with IBM cloudant
Expand Down
2 changes: 1 addition & 1 deletion taca/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Main TACA module"""

__version__ = "1.6.0"
__version__ = "1.6.1"
9 changes: 7 additions & 2 deletions taca/utils/statusdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def get_project_flowcell(
project_flowcells = {}
time_format = (
"%y%m%d"
if (type(self) is X_FlowcellRunMetricsConnection or dbname == "x_flowcells")
if type(self)
in (X_FlowcellRunMetricsConnection, FlowcellRunMetricsConnection)
or dbname in ("x_flowcells", "flowcells")
else "%Y%m%d"
)
date_sorted_fcs = sorted(
Expand All @@ -155,7 +157,10 @@ def get_project_flowcell(
reverse=True,
)
for fc in date_sorted_fcs:
if type(self) is X_FlowcellRunMetricsConnection or dbname == "x_flowcells":
if type(self) in (
X_FlowcellRunMetricsConnection,
FlowcellRunMetricsConnection,
) or dbname in ("x_flowcells", "flowcells"):
fc_date, fc_name = fc.split("_")
elif type(self) is NanoporeRunsConnection or dbname == "nanopore_runs":
fc_date, fc_time, position, fc_name, fc_hash = fc.split(
Expand Down