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
ActiveFixture fixture resource could do with sport_id: int, region_id: int, competition_id: int adding. New resource would look like:
class ActiveFixture(BaseResource):
fixture_id: int
display_name: str
start_date: datetime = Field(alias="startdate")
time: str
each_way_active: str
# waiting on sport_id: int ?
# waiting on region_id: int ?
# waiting on competition_id: int ?
@validator('start_date', pre=True)
def date_parser(cls, v):
if isinstance(v, str):
return datetime.fromisoformat(v)
elif isinstance(v, datetime):
return v
else:
raise TypeError(f"Expected value of type str or datetime")
def __repr__(self):
return f"Fixture: {self.display_name}({self.fixture_id}) {self.start_date}"
The text was updated successfully, but these errors were encountered:
ActiveFixture fixture resource could do with sport_id: int, region_id: int, competition_id: int adding. New resource would look like:
class ActiveFixture(BaseResource):
fixture_id: int
display_name: str
start_date: datetime = Field(alias="startdate")
time: str
each_way_active: str
# waiting on sport_id: int ?
# waiting on region_id: int ?
# waiting on competition_id: int ?
The text was updated successfully, but these errors were encountered: