fix error with geteightam date

timetoconfirm
Raz 7 months ago
parent c95c9f403b
commit 71b71938c4
  1. 2
      tournaments/models/tournament.py

@ -947,7 +947,7 @@ class Tournament(BaseModel):
matches = [m for m in bracket_matches if m.start_date is not None]
if len(matches) == 0:
return None
return min(matches, key=lambda m: m.start_date)
return min(matches, key=lambda m: m.start_date).start_date
def getEightAm(self, date):
return date.replace(hour=8, minute=0, second=0, microsecond=0, tzinfo=date.tzinfo)

Loading…
Cancel
Save