Skip to content

Commit

Permalink
Try always insert
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-finley committed Apr 11, 2024
1 parent 6678075 commit 5fbc9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue_files/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run(event, context):
# Immediately write the new cursor to the database so further requests use
# it and cut down on duplicated work
print("New cursor: ", dropbox_result.cursor)
query = "INSERT INTO dropbox_cursors (dropbox_cursor) VALUES (%s) ON CONFLICT (dropbox_cursor) DO NOTHING"
query = "INSERT INTO dropbox_cursors (dropbox_cursor) VALUES (%s)"
with conn.cursor() as cursor:
cursor.execute(query, (dropbox_result.cursor,))

Expand Down

0 comments on commit 5fbc9fb

Please sign in to comment.