aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db')
-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