mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
修复公共ck上限后不会跳过的问题
This commit is contained in:
parent
13976516d8
commit
659d8bdf1c
@ -113,7 +113,7 @@ async def limit_public_cookie(cookie):
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
cursor.execute('''CREATE TABLE IF NOT EXISTS public_cookies(
|
||||
no int PRIMARY KEY
|
||||
no int IDENTITY(1,1) PRIMARY KEY,
|
||||
cookie TEXT,
|
||||
status TEXT);''')
|
||||
cursor.execute('UPDATE public_cookies SET status="limited30" WHERE cookie=?;', (cookie,))
|
||||
@ -125,7 +125,7 @@ async def reset_public_cookie():
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
cursor.execute('''CREATE TABLE IF NOT EXISTS public_cookies(
|
||||
no int PRIMARY KEY
|
||||
no int IDENTITY(1,1) PRIMARY KEY,
|
||||
cookie TEXT,
|
||||
status TEXT);''')
|
||||
cursor.execute('UPDATE public_cookies SET status="OK" WHERE status="limited30";')
|
||||
|
Loading…
Reference in New Issue
Block a user