Skip to content

Commit

Permalink
school name bugfix
Browse files Browse the repository at this point in the history
thanks for the heads up Mona! :)
  • Loading branch information
fjukstad committed Nov 30, 2016
1 parent 43a6439 commit 0ae0ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kodetimen.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func getRegisteredSchools() ([]RegisteredSchool, error) {
for _, school := range allNorwegianSchools {
reg := false
for i, registered := range registeredSchools {
if strings.Contains(school.Name, registered.School) && registered.Locality == school.MunicipalityName {
if registered.School != "" && strings.Contains(school.Name, registered.School) && registered.Locality == school.MunicipalityName {
reg = true
// remove from slice so we don't add it later on
registeredSchools[i].School = ""
Expand Down

0 comments on commit 0ae0ad9

Please sign in to comment.