Begin gameplay cog rewrite
This commit is contained in:
parent
2f00bff5f9
commit
033b028b85
4719
cogs/gameplay.py
4719
cogs/gameplay.py
File diff suppressed because it is too large
Load Diff
4719
cogs/gameplay_legacy.py
Normal file
4719
cogs/gameplay_legacy.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -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):
|
||||
@ -66,6 +66,12 @@ class Lineup(SQLModel, table=True):
|
||||
game: Game = Relationship(back_populates='lineups')
|
||||
|
||||
|
||||
|
||||
"""
|
||||
BEGIN DEVELOPMENT HELPERS
|
||||
"""
|
||||
|
||||
|
||||
def create_db_and_tables():
|
||||
SQLModel.metadata.create_all(engine)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user