feat: Add tests for verifying multiple dose functionality and CSV saving

This commit is contained in:
William Valentin
2025-07-28 22:04:33 -07:00
parent a4a71380ef
commit 3df610fc95
3 changed files with 277 additions and 1 deletions
+2 -1
View File
@@ -602,7 +602,8 @@ class UIManager:
punch_button.grid(row=idx, column=3, sticky="w", padx=5, pady=2)
# Parse and format doses for editing
if doses_str:
if doses_str and str(doses_str) != "nan":
doses_str = str(doses_str) # Convert to string in case it's a float/NaN
formatted_doses = []
for dose_entry_str in doses_str.split("|"):
if ":" in dose_entry_str: