Dasflugen 5 лет назад
Родитель
Сommit
ba3a187d99
2 измененных файлов с 9 добавлено и 9 удалено
  1. 1 1
      api/authorization.go
  2. 8 8
      api/scheduletemplate.go

+ 1 - 1
api/authorization.go

@@ -46,7 +46,7 @@ func LoginRoute(w http.ResponseWriter, r *http.Request){
 				}
 			}
 		}
-		fmt.Println(entry)
+		PrintConsole(entry)
 		json.NewEncoder(w).Encode(userGroups)
 		return
 	}

+ 8 - 8
api/scheduletemplate.go

@@ -88,18 +88,18 @@ func GetDataGroups(w http.ResponseWriter, r *http.Request){
 			tmpsubject.Teacher2 = tmpsubject.Teacher // TODO
 			if tsubject.IDStype == 1{
 				tmpsubject.IsComputer = false
-				tmpsubject.Theory = 0
-				tmpsubject.Practice.A = subject.Hoursquantity/2
-				tmpsubject.Practice.B = subject.Hoursquantity/2
+				// tmpsubject.Theory = 0
+				// tmpsubject.Practice.A = subject.Hoursquantity/2
+				// tmpsubject.Practice.B = subject.Hoursquantity/2
 			} else if tsubject.IDStype == 0{
 				tmpsubject.IsComputer = true
-				tmpsubject.Theory = subject.Hoursquantity/2
-				tmpsubject.Practice.A = 0
-				tmpsubject.Practice.B = 0
+				// tmpsubject.Theory = subject.Hoursquantity/2
+				// tmpsubject.Practice.A = 0
+				// tmpsubject.Practice.B = 0
 			}
 			fmt.Println(semester)
-			tmpsubject.WeekLessons.A = (subject.Hoursquantity/semester.Weeksquantity)/2
-			tmpsubject.WeekLessons.B = (subject.Hoursquantity/semester.Weeksquantity)/2
+			// tmpsubject.WeekLessons.A = (subject.Hoursquantity/semester.Weeksquantity)/2
+			// tmpsubject.WeekLessons.B = (subject.Hoursquantity/semester.Weeksquantity)/2
 			tmpsubjects = append(tmpsubjects, tmpsubject)
 		}
 	}