From 8633064d9f7f199c2a67100c4e35fdde8b31e756 Mon Sep 17 00:00:00 2001 From: Jack Edwards Date: Mon, 6 Apr 2026 18:49:39 +0100 Subject: [PATCH] fix(unique-collision-logic): Fixed issue where a unique hash collision would result in a 500 error instead of a toast to the user --- app/turso_mgmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/turso_mgmt.py b/app/turso_mgmt.py index 1a6f9a78..240a0089 100644 --- a/app/turso_mgmt.py +++ b/app/turso_mgmt.py @@ -50,7 +50,7 @@ def get_link(hashsum: str): def insert_link(hashsum: str, url: bytes, salt: bytes): """Insert an entry under the specified path, return bool outcome""" - unique_error = "UNIQUE constraint failed: urls.hashsum" + unique_error = "UNIQUE constraint failed: urls.HASHSUM" conn = _create_connection() try: # Insert entry