Skip to content

Commit 1337ff0

Browse files
authored
Date object not set for some fqrs, shouldn't break generating fqlr dics (#984)
1 parent 484cc9a commit 1337ff0

File tree

1 file changed

+2
-0
lines changed
  • lib/workload/stateless/stacks/fastq-manager/app/api/fastq_manager_api_tools/models

1 file changed

+2
-0
lines changed

lib/workload/stateless/stacks/fastq-manager/app/api/fastq_manager_api_tools/models/fastq_list_row.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ def to_fastq_list_row(self) -> FastqListRowDict:
264264
library_description_list = [
265265
f"Library ID: {library_obj['libraryId']}",
266266
f"Sequenced on {datetime_to_hf_format(self.date)} at {self.center.value}"
267+
if self.date is not None and self.center is not None
268+
else "",
267269
f"Phenotype: {library_obj['phenotype']}" if library_obj['phenotype'] else None,
268270
f"Assay: {library_obj['assay']}" if library_obj['assay'] else None,
269271
f"Type: {library_obj['type']}" if library_obj['type'] else None,

0 commit comments

Comments
 (0)