Commit 6060668a authored by ZZH's avatar ZZH

fix qkadmin 2024-03-6

parent 6e1497b5
...@@ -51,7 +51,7 @@ async def post_news_pages(request, body: NewsPagesReq) -> NewsPagesRsp: ...@@ -51,7 +51,7 @@ async def post_news_pages(request, body: NewsPagesReq) -> NewsPagesRsp:
page_num = int(body.page_num) page_num = int(body.page_num)
page_size = int(body.page_size) page_size = int(body.page_size)
news_type = int(body.page_size) if body.page_size else 0 news_type = int(body.page_size) if body.page_size else 0
total, articles = load_news_pages(news_type, page_num, page_size) total, articles = await load_news_pages(news_type, page_num, page_size)
rsp_articles = [ rsp_articles = [
NewsInfo(id=r["id"], title=r["title"], author=r["author"], NewsInfo(id=r["id"], title=r["title"], author=r["author"],
pub_time=r["pub_time"], news_type=r["news_type"], pub_time=r["pub_time"], news_type=r["news_type"],
......
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