You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for awesome work and library. I'm new here and trying to implement the following SQL request. I have two models: Game and User. I want to find all pending games for current user (pending game -> game without enemy) and get the first result. So I want get the Game object, that:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Thanks for awesome work and library. I'm new here and trying to implement the following SQL request. I have two models:
Game
andUser
. I want to find all pending games for current user (pending game -> game without enemy) and get the first result. So I want get the Game object, that:Game.currency
== chosen currency of userGame.winner_id
is NoneGame
host's experience is between 0 and 100My request:
But I get the result as list of fields, not as object or dictionary.
I think it should be implemented with Loaders, but I don't have any idea, how can I do right.
Models:
user.py
game.py
db.py
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions