fix: Replaced call to open with the correct file to open
This commit is contained in:
parent
dae94eb322
commit
91d11dedc0
@ -67,7 +67,7 @@ func (c CourseConfig) String() string {
|
||||
func LoadSchedule(fileName string) (Schedule, error) {
|
||||
var v Schedule
|
||||
|
||||
configFile, err := os.Open("schedule.toml")
|
||||
configFile, err := os.Open(fileName)
|
||||
if err != nil {
|
||||
return v, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user