We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e7cb60b + e637d26 commit 8dcd6e9Copy full SHA for 8dcd6e9
1 file changed
cohd/biolink_mapper.py
@@ -4,6 +4,7 @@
4
import difflib
5
from collections import defaultdict
6
import urllib3
7
+from datetime import datetime
8
9
from .cohd_utilities import DomainClass
10
from .app import app, cache
@@ -870,6 +871,15 @@ def build_mappings() -> Tuple[str, int]:
870
871
cur.execute(sql)
872
conn.commit()
873
874
+ # Insert into update_log
875
+ sql = """
876
+ INSERT INTO biolink.update_log (timestamp, count)
877
+ VALUES (%s, %s)
878
+ """
879
+ params = [datetime.now(), mapping_count + string_match_count]
880
+ cur.execute(sql, params)
881
+ conn.commit()
882
+
883
status_message = f"""Current number of mapped mappings: {current_count}
884
Current number of string mappings: {current_count_string}
885
New mapped mappings: {mapping_count}
0 commit comments