fix: 修复了新名称需要访问两次才+1的bug(?)

This commit is contained in:
MarkusJoe
2022-09-03 07:06:47 +08:00
parent 9ff3df808d
commit 0fabde36bf
1 file changed
+1 -1
+1 -1
View File
@@ -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: