aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-28 10:50:44 +0300
committerFrederick Muriuki Muriithi2023-10-10 11:12:45 +0300
commitd8f22144360b22a0ea0f6d81e366150865bbe5fb (patch)
tree3ab5bf8df41777dc2e55f3a1bbda74cf2d76f6fe
parent00a91a180b28984dafd01c5544df51943e7a5bee (diff)
downloadgenenetwork3-d8f22144360b22a0ea0f6d81e366150865bbe5fb.tar.gz
Rename function: Make it clearer what function does.
-rw-r--r--gn3/case_attributes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/case_attributes.py b/gn3/case_attributes.py
index 1160678..67bb407 100644
--- a/gn3/case_attributes.py
+++ b/gn3/case_attributes.py
@@ -47,7 +47,7 @@ def __by_strain__(accumulator, item):
}
}
-def __case_attributes_by_inbred_set__(
+def __case_attribute_values_by_inbred_set__(
conn: Connection, inbredset_id: int) -> tuple[dict, ...]:
"""
Retrieve Case-Attributes by their InbredSet ID. Do not call this outside
@@ -73,7 +73,7 @@ def __case_attributes_by_inbred_set__(
def inbredset_case_attribute_values(inbredset_id: int) -> Response:
"""Retrieve the group's (InbredSet's) case-attribute values."""
with database_connection(current_app.config["SQL_URI"]) as conn:
- return jsonify(__case_attributes_by_inbred_set__(conn, inbredset_id))
+ return jsonify(__case_attribute_values_by_inbred_set__(conn, inbredset_id))
def __process_edit_data__(form_data) -> tuple[dict, ...]:
"""Process data from form and return tuple of dicts."""