mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-21 15:50:59 +00:00
864b1de015
This used to read User.query.filter_by(session_token=token), but that generates "session_token is NULL" when token is None, and we need "session_token = NULL", or else we will match arbitrary users(!). This is a bit of WTF from SQLAlchemy here, IMO: it dangerously opts for idiomatic Python over idiomatic SQL. We fell prey, at least. :-/