aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/wiki.py
diff options
context:
space:
mode:
authorJohn Nduli2024-08-29 11:21:07 +0300
committerBonfaceKilz2024-08-29 15:34:44 +0300
commit1cb8b2c3b242522461f7db98008a9e7e882bee9a (patch)
tree0665211ff3a7dccba507cd7ddf40b5ba176bdc3d /gn3/db/wiki.py
parent88a6fe43b6e0067b60d871a22cff40e197ab98ac (diff)
downloadgenenetwork3-1cb8b2c3b242522461f7db98008a9e7e882bee9a.tar.gz
chore: pylint docstring
Diffstat (limited to 'gn3/db/wiki.py')
-rw-r--r--gn3/db/wiki.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/db/wiki.py b/gn3/db/wiki.py
index f2984af..abb1644 100644
--- a/gn3/db/wiki.py
+++ b/gn3/db/wiki.py
@@ -10,6 +10,7 @@ class MissingDBDataException(Exception):
def get_latest_comment(connection, comment_id: str) -> int:
+ """ Latest comment is one with the highest versionId """
cursor = connection.cursor(DictCursor)
query = """ SELECT versionId AS version, symbol, PubMed_ID AS pubmed_ids, sp.Name AS species,
comment, email, weburl, initial, reason