Skip to content

Commit

Permalink
fix: remove filter by duration
Browse files Browse the repository at this point in the history
  • Loading branch information
jus1d committed Feb 5, 2025
1 parent 168ca8f commit a65121b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/handler/contests.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (h *Handler) GetContests(c echo.Context) error {
if c.IsDraft {
continue
}
if c.StartTime.Add(time.Minute * time.Duration(c.DurationMins)).Before(time.Now()) {
if c.EndTime.Before(time.Now()) {
continue
}

Expand Down

0 comments on commit a65121b

Please sign in to comment.