diff options
author | Frederick Muriuki Muriithi | 2023-07-21 08:35:52 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-07-21 08:47:04 +0300 |
commit | 469a6a878f0a305ac7fbab9d3b4ff9913d3f462c (patch) | |
tree | cc444e3ad2e1df40adc04baa168cdac0fda85bfd | |
parent | c36821d443c57a808972bbbb72a699d565bb4484 (diff) | |
download | genenetwork3-469a6a878f0a305ac7fbab9d3b4ff9913d3f462c.tar.gz |
Rename function: fetch_publication ==> fetch_publication_by_id
-rw-r--r-- | gn3/db/phenotypes.py | 2 |
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)) |