浏览代码

thx to tealeg 5

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
                 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 := ""
             certform := ""
             splited = strings.Split(row.Cells[3].String(), ",")
             splited = strings.Split(row.Cells[3].String(), ",")