Commit 63dff97b authored by ZZH's avatar ZZH

fix contact add time condition 2024-03-14

parent 5fbd8156
......@@ -10,9 +10,9 @@ async def load_contact_records(page_num, page_size, s_dts, e_dts):
offsets = 0 if page_num == 0 else (page_num - 1) * page_size
ts_conds = []
if s_dts:
ts_conds.append(f"pub_time>='{str(s_dts)}'")
ts_conds.append(f"create_time>='{str(s_dts)}'")
if e_dts:
ts_conds.append(f"pub_time<'{str(e_dts)}'")
ts_conds.append(f"create_time<'{str(e_dts)}'")
conds_str = " WHERE " + " AND ".join(ts_conds) if ts_conds else ""
async with MysqlUtil(db="official_web") as conn:
......
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