From 5fbc9fb41fa2f4cdb50ae886a46d3cc950f757e7 Mon Sep 17 00:00:00 2001 From: Greg Finley Date: Wed, 10 Apr 2024 22:03:50 -0700 Subject: [PATCH] Try always insert --- queue_files/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue_files/main.py b/queue_files/main.py index bcb3ec6..470f8e1 100644 --- a/queue_files/main.py +++ b/queue_files/main.py @@ -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,))