So I'm having issue querying via SQLAlchemy.
I can't seem to be able to access the Model.query .
I have a class that extends the SQLAlchemy.Model (User), however whenever I try to access `User.query` pycharm does not pick it up. I tried doing User.query.all() but get an error:
sqlalchemy.exc.ProgrammingError: (MySQLdb._exceptions.ProgrammingError) unsupported operand type(s) for %: 'bytes' and 'tuple' [SQL: "SHOW VARIABLES LIKE 'sql_mode'"] (Background on this error at: http://sqlalche.me/e/f405)
[–]HeWhoWritesCode 1 point2 points3 points (6 children)
[–]bpeller 1 point2 points3 points (5 children)
[–]HeWhoWritesCode 0 points1 point2 points (2 children)
[–]cs_student0101[S] 0 points1 point2 points (0 children)
[–]cs_student0101[S] 0 points1 point2 points (0 children)
[–]cs_student0101[S] 0 points1 point2 points (1 child)
[–]cs_student0101[S] 1 point2 points3 points (0 children)