This commit is contained in:
soukainna 2023-03-06 10:25:16 +01:00
parent a05942b7ed
commit e4418f26e0
1 changed files with 0 additions and 41 deletions

View File

@ -398,21 +398,6 @@ func (h ApplicationHandler) AdminStatVehicles(w http.ResponseWriter, r *http.Req
//vehicles := []fleetsstorage.Vehicle{}
bookings := []fleetsstorage.Booking{}
//vehicles_map := map[string]fleetsstorage.Vehicle{}
// for _, vehicle := range resp.Vehicles {
// if filteVehicle(r, vehicle) {
// v := vehicle.ToStorageType()
// vehicles = append(vehicles, v)
// vehicles_map[v.ID] = v
// for _, b := range v.Bookings {
// if b.Status() != fleetsstorage.StatusOld {
// bookings = append(bookings, b)
// }
// }
// }
// }
administrators := []string{}
reequest := &fleets.GetVehiclesRequest{
Namespaces: []string{"parcoursmob"},
@ -458,32 +443,6 @@ func (h ApplicationHandler) AdminStatVehicles(w http.ResponseWriter, r *http.Req
}
}
//fmt.Println(groups)
//fmt.Println("****************************************************************")
// fmt.Println(vehicles)
// fmt.Println("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
// id := ""
// for _, v := range vehicles {
// id = v.ID
// for _, vv := range v.Bookings {
// i := 1
// // fmt.Println("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
// // fmt.Println(vv.Vehicleid)
// // fmt.Println("*********************************************************")
// if id == vv.Vehicleid {
// i++
// fmt.Println("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
// fmt.Println(vv.Vehicleid)
// fmt.Println("*********************************************************")
// }
// fmt.Println(i)
// }
// fmt.Println(v.Status)
// fmt.Println("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
//}
// fmt.Println(bookings)
sort.Sort(sorting.VehiclesByLicencePlate(vehicles))
sort.Sort(sorting.BookingsByStartdate(bookings))
h.Renderer.AdminStatVehicles(w, r, vehicles, bookings, groups)