class bug: 1 day -> 2 days

This commit is contained in:
Chris Sexton 2019-08-09 20:25:12 -04:00
parent 6d819f0361
commit 30ae21a823
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -70,7 +70,7 @@ func class(file *os.File) {
info := map[string]interface{}{ info := map[string]interface{}{
"Courses": strings.Split(*courses, ","), "Courses": strings.Split(*courses, ","),
"Days": strings.Split(*courseDays, ","), "Days": strings.Split(*courseDays, ","),
"DateRange": fmt.Sprintf("%s-%s", day.Format("2006/01/02"), day.Add(24*time.Hour).Format("02")), "DateRange": fmt.Sprintf("%s-%s", day.Format("2006/01/02"), day.Add(48*time.Hour).Format("02")),
"Week": fmt.Sprintf("Week %d", i+1), "Week": fmt.Sprintf("Week %d", i+1),
} }
check(body.Execute(file, info)) check(body.Execute(file, info))