|
|
@@ -99,7 +99,7 @@ def _row_to_dict(row: BizSampleProductionReception) -> Dict[str, Any]:
|
|
|
"infectiousFourTestResultLabel": INFECTIOUS_FOUR_LABELS.get(result, result),
|
|
|
"enrichedBloodWeightG": _dec(row.enriched_blood_weight_g),
|
|
|
"cryopreservationVolumeMl": _dec(row.cryopreservation_volume_ml),
|
|
|
- "inoculationAmount": _dec(row.inoculation_amount),
|
|
|
+ "inoculationAmount": row.inoculation_amount or "",
|
|
|
"cryopreservationTime": _fmt_dt(row.cryopreservation_time),
|
|
|
"storageTotalTubes": row.storage_total_tubes,
|
|
|
"availableCellCount1e7": _dec(row.available_cell_count_1e7),
|
|
|
@@ -200,7 +200,11 @@ def _apply_payload_to_row(
|
|
|
row.cryopreservation_volume_ml = (
|
|
|
data.get("cryopreservationVolumeMl") if "cryopreservationVolumeMl" in allowed else None
|
|
|
)
|
|
|
- row.inoculation_amount = data.get("inoculationAmount") if "inoculationAmount" in allowed else None
|
|
|
+ row.inoculation_amount = (
|
|
|
+ (str(data.get("inoculationAmount") or "").strip() or None)
|
|
|
+ if "inoculationAmount" in allowed
|
|
|
+ else None
|
|
|
+ )
|
|
|
ct = data.get("cryopreservationTime")
|
|
|
row.cryopreservation_time = ct if "cryopreservationTime" in allowed and ct else None
|
|
|
row.storage_total_tubes = (
|