perf: 修改 db

pull/14788/head
ibuler 2025-01-08 19:24:22 +08:00
parent 7b380219dc
commit 132848c054
3 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
#

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37be0604185cf3189de457dc7339a461052d96582096beb4fdf7b0fcb2c290a8
size 98037760
oid sha256:36a6ac3b65401dbf67cb31ec090e4bad900fc162d092359d9b0a61c177156bad
size 16384

View File

@ -156,7 +156,7 @@ class CheckLeakHandler(BaseCheckHandler):
if not account.secret:
return False
sql = 'SELECT 1 FROM leak_passwords WHERE password = ? LIMIT 1'
sql = 'SELECT 1 FROM passwords WHERE password = ? LIMIT 1'
self.cursor.execute(sql, (account.secret,))
leak = self.cursor.fetchone() is not None
return leak