Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thedmdim committed May 13, 2024
1 parent cb1ecbe commit 143492e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/handlers/random_hander.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (sc *SearchCriteria) MakeWhere() string {
conditions = append(conditions, fmt.Sprintf("uploaded >= %d", timestamp))
}
if year, err := strconv.Atoi(sc.YearsTo); err == nil {
timestamp := time.Date(year, time.January, 1, 0, 0, 0, 0, time.UTC).Unix()
timestamp := time.Date(year, time.December, 31, 0, 0, 0, 0, time.UTC).Unix()
conditions = append(conditions, fmt.Sprintf("uploaded <= %d", timestamp))
}
if sc.Horizonly {
Expand Down

0 comments on commit 143492e

Please sign in to comment.