aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-21 08:35:52 +0300
committerFrederick Muriuki Muriithi2023-07-21 08:47:04 +0300
commit469a6a878f0a305ac7fbab9d3b4ff9913d3f462c (patch)
treecc444e3ad2e1df40adc04baa168cdac0fda85bfd
parentc36821d443c57a808972bbbb72a699d565bb4484 (diff)
downloadgenenetwork3-469a6a878f0a305ac7fbab9d3b4ff9913d3f462c.tar.gz
Rename function: fetch_publication ==> fetch_publication_by_id
-rw-r--r--gn3/db/phenotypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py
index e8b0b0b..a908c41 100644
--- a/gn3/db/phenotypes.py
+++ b/gn3/db/phenotypes.py
@@ -132,7 +132,7 @@ def fetch_metadata(conn: DBConnection, phenotype_id: int) -> dict:
{"phenotype_id": phenotype_id})
return cursor.fetchone()
-def fetch_publication(conn: DBConnection, publication_id: int) -> dict:
+def fetch_publication_by_id(conn: DBConnection, publication_id: int) -> dict:
"""Fetch the publication by its ID."""
with conn.cursor(cursorclass=DictCursor) as cursor:
cols = ', '.join(mapping_to_query_columns(publication_mapping))