fix: add combined_season classmethod to PitchingStat (#65) #67
@ -1175,6 +1175,10 @@ class PitchingStat(BaseModel):
|
|||||||
def select_season(season):
|
def select_season(season):
|
||||||
return PitchingStat.select().where(PitchingStat.season == season)
|
return PitchingStat.select().where(PitchingStat.season == season)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def combined_season(season):
|
||||||
|
return PitchingStat.select().where(PitchingStat.season == season)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def regular_season(season):
|
def regular_season(season):
|
||||||
if season == 1:
|
if season == 1:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user