Begin gameplay cog rewrite

This commit is contained in:
Cal Corum 2024-10-11 20:15:08 -05:00
parent 2f00bff5f9
commit 033b028b85
3 changed files with 4728 additions and 4722 deletions

File diff suppressed because it is too large Load Diff

4719
cogs/gameplay_legacy.py Normal file

File diff suppressed because it is too large Load Diff

View File

@ -37,9 +37,9 @@ class Game(SQLModel, table=True):
cardset_links: list[GameCardsetLink] = Relationship(back_populates='game')
lineups: list['Lineup'] = Relationship(back_populates='game')
@property
def game_prop(self) -> str:
return f'Game {self.id} / Week {self.week_num} / Type {self.game_type}'
# @property
# def game_prop(self) -> str:
# return f'Game {self.id} / Week {self.week_num} / Type {self.game_type}'
class Cardset(SQLModel, table=True):
@ -64,6 +64,12 @@ class Lineup(SQLModel, table=True):
game_id: int = Field(foreign_key='game.id', index=True)
game: Game = Relationship(back_populates='lineups')
"""
BEGIN DEVELOPMENT HELPERS
"""
def create_db_and_tables():