Update bot.py

master
wqj666888 2 years ago
parent c3e90d1100
commit 04d582cb17

@ -29,7 +29,7 @@ def ss(update: Update, context: CallbackContext) -> None:
content = '^[0-9]{8}$' content = '^[0-9]{8}$'
result = re.findall(content, str(name)) result = re.findall(content, str(name))
if len(result) != 0: if len(result) != 0:
sql = "SELECT * FROM FileObject WHERE name LIKE '%" + name + "%';" sql = "SELECT * FROM FileObject WHERE name LIKE '%" + str(name) + "%';"
db.execute(sql) db.execute(sql)
result = db.fetchall() result = db.fetchall()
if len(result) !=0: if len(result) !=0:

Loading…
Cancel
Save