From a74ad8ff00666befedf85ba76baba179a700b1ee Mon Sep 17 00:00:00 2001 From: Vladimir Buzalka Date: Fri, 6 Mar 2026 17:22:02 +0100 Subject: [PATCH] git --- Seedbox/80 DeleteWhatWeHaveUltraCC2.py | 2 +- Seedbox/81 DeleteWhatWeHaveUltraCC.py | 2 +- ...leteWhatWeHaveUltraCC1.py => 82 DeleteWhatWeHaveUltraCC1.py} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename Seedbox/{81 DeleteWhatWeHaveUltraCC1.py => 82 DeleteWhatWeHaveUltraCC1.py} (98%) diff --git a/Seedbox/80 DeleteWhatWeHaveUltraCC2.py b/Seedbox/80 DeleteWhatWeHaveUltraCC2.py index 87f1a97..5bd8832 100644 --- a/Seedbox/80 DeleteWhatWeHaveUltraCC2.py +++ b/Seedbox/80 DeleteWhatWeHaveUltraCC2.py @@ -63,7 +63,7 @@ def compute_blake3(path: Path) -> bytes: def hash_in_db(cursor, digest: bytes): """Vrátí (host_name, full_path) prvního záznamu s daným hashem, nebo None.""" cursor.execute( - "SELECT host_name, full_path FROM file_md5_index WHERE blake3 = %s LIMIT 1", + "SELECT host_name, full_path FROM file_md5_index WHERE blake3 = %s AND host_name = 'tower1' AND full_path LIKE '/mnt/user/#ColdData/Porno/%' LIMIT 1", (digest,) ) return cursor.fetchone() # None nebo (host_name, full_path) diff --git a/Seedbox/81 DeleteWhatWeHaveUltraCC.py b/Seedbox/81 DeleteWhatWeHaveUltraCC.py index a6c3e16..4639cd4 100644 --- a/Seedbox/81 DeleteWhatWeHaveUltraCC.py +++ b/Seedbox/81 DeleteWhatWeHaveUltraCC.py @@ -63,7 +63,7 @@ def compute_blake3(path: Path) -> bytes: def hash_in_db(cursor, digest: bytes): """Vrátí (host_name, full_path) prvního záznamu s daným hashem, nebo None.""" cursor.execute( - "SELECT host_name, full_path FROM file_md5_index WHERE blake3 = %s LIMIT 1", + "SELECT host_name, full_path FROM file_md5_index WHERE blake3 = %s AND host_name = 'tower1' AND full_path LIKE '/mnt/user/#ColdData/Porno/%' LIMIT 1", (digest,) ) return cursor.fetchone() # None nebo (host_name, full_path) diff --git a/Seedbox/81 DeleteWhatWeHaveUltraCC1.py b/Seedbox/82 DeleteWhatWeHaveUltraCC1.py similarity index 98% rename from Seedbox/81 DeleteWhatWeHaveUltraCC1.py rename to Seedbox/82 DeleteWhatWeHaveUltraCC1.py index 5b8304c..d61a6e5 100644 --- a/Seedbox/81 DeleteWhatWeHaveUltraCC1.py +++ b/Seedbox/82 DeleteWhatWeHaveUltraCC1.py @@ -63,7 +63,7 @@ def compute_blake3(path: Path) -> bytes: def hash_in_db(cursor, digest: bytes): """Vrátí (host_name, full_path) prvního záznamu s daným hashem, nebo None.""" cursor.execute( - "SELECT host_name, full_path FROM file_md5_index WHERE blake3 = %s LIMIT 1", + "SELECT host_name, full_path FROM file_md5_index WHERE blake3 = %s AND host_name = 'tower1' AND full_path LIKE '/mnt/user/#ColdData/Porno/%' LIMIT 1", (digest,) ) return cursor.fetchone() # None nebo (host_name, full_path)