Skip to content

Commit 644e2e7

Browse files
committed
Additional comment cleanup
1 parent c232581 commit 644e2e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/api/admin_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def execute():
7373
# Write Last Execution stats to DB
7474
# See Alembic Revision ID: 05e0693f8cbb for table definition
7575
with engine.connect() as connection:
76-
ins_stmt = insert(kvt).values(
76+
ins_stmt = insert(kvt).values( # Postgres-specific insert() supporting ON CONFLICT
7777
keycol = 'last_execution_time',
7878
valcol = last_ex_json,
7979
)
@@ -93,7 +93,7 @@ def execute():
9393

9494

9595
def get_statistics():
96-
""" Write Last Execution stats to DB. """
96+
9797
with engine.connect() as connection:
9898
query_matches = text("SELECT count(*) FROM (SELECT distinct matching_id from pdp_contacts) as a;")
9999
query_total_count = text("SELECT count(*) FROM pdp_contacts;")
@@ -112,7 +112,7 @@ def get_statistics():
112112
@admin_api.route("/api/statistics", methods=["GET"])
113113
def list_statistics():
114114
""" Pull Last Execution stats from DB. """
115-
115+
current_app.logger.info("list_statistics() request")
116116
last_execution_details = '{}' # Empty but valid JSON
117117

118118
try: # See Alembic Revision ID: 05e0693f8cbb for table definition

0 commit comments

Comments
 (0)