fix: Replaced call to open with the correct file to open

This commit is contained in:
Nicholas Novak 2023-11-14 22:56:17 -08:00
parent dae94eb322
commit 91d11dedc0

View File

@ -67,7 +67,7 @@ func (c CourseConfig) String() string {
func LoadSchedule(fileName string) (Schedule, error) { func LoadSchedule(fileName string) (Schedule, error) {
var v Schedule var v Schedule
configFile, err := os.Open("schedule.toml") configFile, err := os.Open(fileName)
if err != nil { if err != nil {
return v, err return v, err
} }