Open vargmurtter opened 8 months ago
I think this might help
async def get_battles(self) -> list[TeamBattle]:
return await TeamBattle.find(
Or(
TeamBattle.team_red == self.id,
TeamBattle.team_blue == self.id
)
).to_list()
Hi, Thank you for the catch. I'll pick it up during the bug fixing session (this or next weekend).
Discussed in https://github.com/roman-right/beanie/discussions/789