From d354a505543682c800b19423f91c9ea994afbe6b Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Wed, 11 Sep 2024 15:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=87=AA=E5=8A=A8=E5=B8=A6=E5=85=A5?= =?UTF-8?q?=E4=B8=8A=E6=AC=A1=E6=8A=95=E7=A5=A8=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dao.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dao.py b/src/dao.py index 324a877..1e0bc2b 100644 --- a/src/dao.py +++ b/src/dao.py @@ -63,11 +63,11 @@ def get_user_menu() -> str: row = cursor.fetchone() if row: return row[0] - else: - cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,)) - row = cursor.fetchone() - if row: - return row[0] + # else: + # cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,)) + # row = cursor.fetchone() + # if row: + # return row[0] return '' finally: cursor.close()