Archived
fix: 修复了新名称需要访问两次才+1的bug(?)
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -32,7 +32,7 @@ class SQLite:
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def insert(self, _id: str) -> bool:
|
def insert(self, _id: str) -> bool:
|
||||||
self.cursor.execute('insert into data (id, times) values ("%s", 0)' % _id)
|
self.cursor.execute('insert into data (id, times) values ("%s", 1)' % _id)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def update(self, _id: str, times: int) -> bool:
|
def update(self, _id: str, times: int) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user