Commit f6704c9c authored by ZZH's avatar ZZH

fix qkadmin 2024-03-6

parent 6060668a
...@@ -54,6 +54,6 @@ async def post_news_pages(request, body: NewsPagesReq) -> NewsPagesRsp: ...@@ -54,6 +54,6 @@ async def post_news_pages(request, body: NewsPagesReq) -> NewsPagesRsp:
total, articles = await 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=str(r["pub_time"]), news_type=r["news_type"],
top=r["top"]) for r in articles] top=r["top"]) for r in articles]
return NewsPagesRsp(total=total, articles=rsp_articles) return NewsPagesRsp(total=total, articles=rsp_articles)
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