From 04d582cb172ead43801d5d6c701f7063c36d43b5 Mon Sep 17 00:00:00 2001 From: wqj666888 <45819506+wqj666666@users.noreply.github.com> Date: Thu, 8 Dec 2022 09:00:33 +0800 Subject: [PATCH] Update bot.py --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index d01a3fa..f83cff5 100644 --- a/bot.py +++ b/bot.py @@ -29,7 +29,7 @@ def ss(update: Update, context: CallbackContext) -> None: content = '^[0-9]{8}$' result = re.findall(content, str(name)) if len(result) != 0: - sql = "SELECT * FROM FileObject WHERE name LIKE '%" + name + "%';" + sql = "SELECT * FROM FileObject WHERE name LIKE '%" + str(name) + "%';" db.execute(sql) result = db.fetchall() if len(result) !=0: