Closed UnoYakshi closed 6 years ago
In a custom view.py I do:
view.py
from app import db, blogging_engine, login_manager # ... @news_bp.route('/posts') def index(): try: # Get all posts... posts = blogging_engine.get_posts(count=None) return render_template('posts.html', posts=posts) except Exception as excpt: return 'Exception: {}'.format(str(excpt))
and it falls with 'SQLAStorage' object is not callable.
'SQLAStorage' object is not callable
Either it is a bug, or I do something wrong.
My fault. Should be posts = blogging_engine.storage.get_posts(count=None) instead.
posts = blogging_engine.storage.get_posts(count=None)
In a custom
view.py
I do:and it falls with
'SQLAStorage' object is not callable
.Either it is a bug, or I do something wrong.