Remove a fmt.Println leftover from a debug session

This commit is contained in:
jordi fita mas 2024-02-29 16:11:23 +01:00
parent 4e2df3f3c3
commit 9dc4c4ef8d
1 changed files with 0 additions and 1 deletions

View File

@ -197,7 +197,6 @@ var longMonthNames = []string{
func CollectSeasonCalendar(ctx context.Context, company *auth.Company, conn *database.Conn, year int, firstMonth time.Month, monthCount int) (*Calendar, error) { func CollectSeasonCalendar(ctx context.Context, company *auth.Company, conn *database.Conn, year int, firstMonth time.Month, monthCount int) (*Calendar, error) {
firstDay := time.Date(year, firstMonth, 1, 0, 0, 0, 0, time.UTC) firstDay := time.Date(year, firstMonth, 1, 0, 0, 0, 0, time.UTC)
lastDay := firstDay.AddDate(0, monthCount, 0).Add(-1 * time.Second) lastDay := firstDay.AddDate(0, monthCount, 0).Add(-1 * time.Second)
fmt.Println(lastDay)
rows, err := conn.Query(ctx, ` rows, err := conn.Query(ctx, `
select t.day::date select t.day::date
, to_color(coalesce(color, $1)) as color , to_color(coalesce(color, $1)) as color