This question already has answers here:
Closed 2 years ago.
I am getting this error:
TypeError: 'BaseQuery' object is not callable
Here is my code:
companies = Company.query.all()
return Company.query(func.count(Company.id))
I need to find out number of rows in Company model. Please help!