Commit 82bdce55 by dong

fix20230417

parent 4a67f1b6
...@@ -387,7 +387,7 @@ def information_detail(): ...@@ -387,7 +387,7 @@ def information_detail():
inform_obj = InvestmentInformation.query.get(_id) inform_obj = InvestmentInformation.query.get(_id)
else: # 最新一条 else: # 最新一条
inform_obj = InvestmentInformation.query.order_by( inform_obj = InvestmentInformation.query.order_by(
InvestmentInformation.id.desc()).all()[-1] InvestmentInformation.time.desc()).all()
data = { data = {
"name": inform_obj.name, "name": inform_obj.name,
......
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