From 8f03f107aa222d38ae85873ef933bdd9ea93c2f9 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Sat, 26 Mar 2022 08:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=A4=E6=96=AD=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=AD=98=E5=9C=A8=E4=BA=8E=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=86=85=E7=9A=84=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/db/db.py b/app/db/db.py index fa470ea..54aed77 100644 --- a/app/db/db.py +++ b/app/db/db.py @@ -54,7 +54,7 @@ class SQLite: :return: """ status = self.fetch(name, True) - if status == (): + if not bool(status): return False else: return True