class bug: 1 day -> 2 days
This commit is contained in:
parent
6d819f0361
commit
30ae21a823
BIN
classExample.pdf
BIN
classExample.pdf
Binary file not shown.
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue