Dasflugen пре 5 година
родитељ
комит
5473cbdb99
1 измењених фајлова са 14 додато и 14 уклоњено
  1. 14 14
      schedule/xlsx.go

+ 14 - 14
schedule/xlsx.go

@@ -40,20 +40,20 @@ func ImportXLSX(filename string) []*PlanXLSX {
                 typerow = IsPmTR
             }
 
-            max, _       := row.Cells[4].Int()
-            selfstudy, _ := row.Cells[5].Int()
-            allstudy, _  := row.Cells[6].Int()
-            lectures, _  := row.Cells[7].Int()
-            labs, _      := row.Cells[8].Int()
-            projects, _  := row.Cells[9].Int()
-            c1s1, _      := row.Cells[12].Int()
-            c1s2, _      := row.Cells[13].Int()
-            c2s1, _      := row.Cells[14].Int()
-            c2s2, _      := row.Cells[15].Int()
-            c3s1, _      := row.Cells[16].Int()
-            c3s2, _      := row.Cells[17].Int()
-            c4s1, _      := row.Cells[18].Int()
-            c4s2, _      := row.Cells[19].Int()
+            max, _       := row.GetCell(4).Int()
+            selfstudy, _ := row.GetCell(5).Int()
+            allstudy, _  := row.GetCell(6).Int()
+            lectures, _  := row.GetCell(7).Int()
+            labs, _      := row.GetCell(8).Int()
+            projects, _  := row.GetCell(9).Int()
+            c1s1, _      := row.GetCell(12).Int()
+            c1s2, _      := row.GetCell(13).Int()
+            c2s1, _      := row.GetCell(14).Int()
+            c2s2, _      := row.GetCell(15).Int()
+            c3s1, _      := row.GetCell(16).Int()
+            c3s2, _      := row.GetCell(17).Int()
+            c4s1, _      := row.GetCell(18).Int()
+            c4s2, _      := row.GetCell(19).Int()
 
             certform := ""
             splited = strings.Split(row.Cells[3].String(), ",")