Relative Content

Tag Archive for pythonsqlalchemy

sqlalchemy and marshmallow in rest api

I have a simple web application which is using python 2.7 BaseHTTPServer (built-in in python itself) and then I created a rest api based on Tal Liron work (https://gist.github.com/tliron/8e9757180506f25e46d9).

SQLAlchemy result SELECT statement wrong: caching?

Here’s the code using sqlite in memory for test purposes.
In verbose mode, you can see it cached the right answer (highlighted) but it displays it wrong nonetheless using print().
What is wrong with my approach: