From 0fabde36bf820b19a06be43f3cc63140382c4cea Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Sat, 3 Sep 2022 07:06:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=96=B0?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E9=9C=80=E8=A6=81=E8=AE=BF=E9=97=AE=E4=B8=A4?= =?UTF-8?q?=E6=AC=A1=E6=89=8D+1=E7=9A=84bug(=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/__init__.py b/src/db/__init__.py index 2244ed1..bacf0aa 100644 --- a/src/db/__init__.py +++ b/src/db/__init__.py @@ -32,7 +32,7 @@ class SQLite: return result 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 def update(self, _id: str, times: int) -> bool: