File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def execute():
73
73
# Write Last Execution stats to DB
74
74
# See Alembic Revision ID: 05e0693f8cbb for table definition
75
75
with engine .connect () as connection :
76
- ins_stmt = insert (kvt ).values (
76
+ ins_stmt = insert (kvt ).values ( # Postgres-specific insert() supporting ON CONFLICT
77
77
keycol = 'last_execution_time' ,
78
78
valcol = last_ex_json ,
79
79
)
@@ -93,7 +93,7 @@ def execute():
93
93
94
94
95
95
def get_statistics ():
96
- """ Write Last Execution stats to DB. """
96
+
97
97
with engine .connect () as connection :
98
98
query_matches = text ("SELECT count(*) FROM (SELECT distinct matching_id from pdp_contacts) as a;" )
99
99
query_total_count = text ("SELECT count(*) FROM pdp_contacts;" )
@@ -112,7 +112,7 @@ def get_statistics():
112
112
@admin_api .route ("/api/statistics" , methods = ["GET" ])
113
113
def list_statistics ():
114
114
""" Pull Last Execution stats from DB. """
115
-
115
+ current_app . logger . info ( "list_statistics() request" )
116
116
last_execution_details = '{}' # Empty but valid JSON
117
117
118
118
try : # See Alembic Revision ID: 05e0693f8cbb for table definition
You can’t perform that action at this time.
0 commit comments