Does anyone familiar with sqlalchemy know how to tell it to use a specific queries? It is currently counting the records in a query when it should be summing the values of specific fields.
For context, currently when I ask it How many people left my page yesterday? It uses a count on the records, whereas the question How many people total left my page yesterday? returns the correct sum query