Skip to content

Commit 706c74f

Browse files
committed
Ruff
1 parent f792c73 commit 706c74f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

dataflow_transfer/run_classes/generic_runs.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ def __init__(self, run_dir, configuration):
3838
self.remote_destination = self.sequencer_config.get("remote_destination")
3939
self.db = StatusdbSession(self.configuration.get("statusdb"))
4040
self.run_id_format = self._resolve_run_id_format()
41-
self.flowcell_id = re.match(self.run_id_format, self.run_id).group("flowcell_id") if self.run_id_format else None
41+
self.flowcell_id = (
42+
re.match(self.run_id_format, self.run_id).group("flowcell_id")
43+
if self.run_id_format
44+
else None
45+
)
4246

4347
def _resolve_run_id_format(self):
4448
"""Resolve the run ID regex from central config."""
@@ -186,9 +190,7 @@ def update_statusdb(self, status, additional_info=None):
186190
ddoc="lookup", view="runfolder_id", run_id=self.run_id
187191
)
188192
if doc_id:
189-
db_doc = self.db.get_document(
190-
db=self.db.db_name, doc_id=doc_id
191-
)
193+
db_doc = self.db.get_document(db=self.db.db_name, doc_id=doc_id)
192194
else:
193195
db_doc = {}
194196

0 commit comments

Comments
 (0)