From b50baedda4d1bb8737c89832413c76391cbb4d27 Mon Sep 17 00:00:00 2001 From: WildSoft Date: Sun, 15 Nov 2026 12:12:48 +0300 Subject: [PATCH] Update public source --- src/database.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/database.py b/src/database.py index e9f802c..ecb5993 100644 --- a/src/database.py +++ b/src/database.py @@ -434,6 +434,7 @@ class Database: if ( "handshake_id" in column_names + and "verified" in column_names and has_provenance_unique ): return @@ -486,10 +487,16 @@ class Database: ) """) + verified_expression = ( + "verified" + if "verified" in column_names + else "0" + ) + if "handshake_id" in column_names: self.conn.execute( - """ + f""" INSERT INTO credentials ( id, @@ -507,7 +514,7 @@ class Database: password, source, created_at, - verified + {verified_expression} FROM credentials_old """ ) @@ -515,7 +522,7 @@ class Database: else: self.conn.execute( - """ + f""" INSERT INTO credentials ( id, @@ -531,7 +538,7 @@ class Database: password, source, created_at, - verified + {verified_expression} FROM credentials_old """ )