Morning I have an error on my HTML template page when viewed in a browser. I am trying to show an SQL query result as an object rather than a list or table. It is a simple 'count' query. But the error I am getting says...
[<flask_app.Comment object at 0x7f0de640b128>]
In flask fie I have... + + + + + def league(): total = Comment.query.order_by(Comment.id.desc()).limit(1).all() return render_template("def.html", total=total) ++++++ Comment is the class name
In my template I have... +++++++++ {{ total }} ++++++++ This is in the body of the HTML.
Sorry if format of question is wrong. Any ideas guys???
Thank you in advance.
M