Commit af97846d authored by ZZH's avatar ZZH

fix news search 2024-03-9

parent 3f7cc00b
......@@ -122,7 +122,7 @@ async def load_news_pages(params):
conds.append(f"pub_time<%s")
if se_title:
param_lst.append(se_title)
conds.append(f"title LIKE %{se_title}%")
conds.append(f"title LIKE '%{se_title}%'")
if len(conds) > 1:
conds_str = "WHERE " + " AND ".join(conds)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment