Skip to content

Commit

Permalink
Don't bother writing down the cursor type anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-finley authored Jan 3, 2024
1 parent b1fa7e6 commit 5dd6e91
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions queue_files/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def run(event, context):
cursor = mysql_connection.cursor()
cursor.execute(query)
old_cursor = cursor.fetchone()[0]
print("Old cursor type: ", type(old_cursor))
print("Old cursor: ", old_cursor)
cursor.close()

Expand All @@ -58,7 +57,6 @@ 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 type: ", type(dropbox_result.cursor))
print("New cursor: ", dropbox_result.cursor)
query = "INSERT IGNORE INTO dropbox_cursors (dropbox_cursor) VALUES (%s)"
cursor = mysql_connection.cursor()
Expand Down

0 comments on commit 5dd6e91

Please sign in to comment.