about summary refs log tree commit diff
path: root/gn3/api/case_attributes.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api/case_attributes.py')
-rw-r--r--gn3/api/case_attributes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/api/case_attributes.py b/gn3/api/case_attributes.py
index f660e69..76e32aa 100644
--- a/gn3/api/case_attributes.py
+++ b/gn3/api/case_attributes.py
@@ -201,10 +201,10 @@ def edit_case_attributes(inbredset_id: int, auth_token=None) -> Response:
             strain, case_attribute = key.split(":")
             if not current.get(strain):
                 current[strain] = {}
-            current[strain][case_attribute] = data.get(key)["Current"]
+            current[strain][case_attribute] = value["Current"]
             if not original.get(strain):
                 original[strain] = {}
-            original[strain][case_attribute] = data.get(key)["Original"]
+            original[strain][case_attribute] = value["Original"]
         modified["Modifications"]["Original"] = original
         modified["Modifications"]["Current"] = current
         edit = CaseAttributeEdit(