Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorprater committed Apr 13, 2017
1 parent 3a1a2a6 commit 3a0bd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consume.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def insert_photos_to_db(photos):
CUR,
"INSERT INTO faces(photo_id, top_left_x, top_left_y, bottom_right_x, bottom_right_y, feature_vector) SELECT val.id, val.top_left_x, val.top_left_y, val.bottom_right_x, val.bottom_right_y, val.feature_vector FROM ( VALUES %s ) val (id, top_left_x, top_left_y, bottom_right_x, bottom_right_y, feature_vector) JOIN photos USING (id) ON CONFLICT(photo_id, top_left_x, top_left_y, bottom_right_x, bottom_right_y) DO NOTHING",
faces,
template="(%s::uuid, %s, %s, %s, %s, %s::[]numeric)")
template="(%s::uuid, %s, %s, %s, %s, %s::numeric[])")
logging.exception("{}: end insert faces to db".format(time.time()))

logging.exception("{}: begin conn.commit()".format(time.time()))
Expand Down

0 comments on commit 3a0bd86

Please sign in to comment.