delete log

This commit is contained in:
soukainna 2023-03-06 10:27:12 +01:00
parent e4418f26e0
commit 232764e7d7
1 changed files with 1 additions and 35 deletions

View File

@ -99,7 +99,7 @@ func (h *ApplicationHandler) Administration(w http.ResponseWriter, r *http.Reque
groupps[g.Id] = g.ToStorageType()
}
}
/////////////////////////////////////////////////////////////////////////////////////////
h.Renderer.Administration(w, r, accounts, beneficiaries, groups, bookings, responses)
}
@ -387,16 +387,6 @@ func filteVehicle(r *http.Request, v *fleets.Vehicle) bool {
func (h ApplicationHandler) AdminStatVehicles(w http.ResponseWriter, r *http.Request) {
// request := &fleets.GetVehiclesRequest{
// Namespaces: []string{"parcoursmob"},
// }
// resp, err := h.services.GRPC.Fleets.GetVehicles(context.TODO(), request)
// if err != nil {
// fmt.Println(err)
// w.WriteHeader(http.StatusInternalServerError)
// }
//vehicles := []fleetsstorage.Vehicle{}
bookings := []fleetsstorage.Booking{}
administrators := []string{}
reequest := &fleets.GetVehiclesRequest{
@ -486,29 +476,6 @@ func (h *ApplicationHandler) groupmembers(groupid string) (groupmembers []mobili
return groupmembers, admins, err
}
////////////////////////available ////////////////////////////////////
// func (h ApplicationHandler) AdminStatAvailableVehicles(w http.ResponseWriter, r *http.Request) {
// request := &fleets.GetVehiclesRequest{
// Namespaces: []string{"parcoursmob"},
// }
// resp, err := h.services.GRPC.Fleets.GetVehicles(context.TODO(), request)
// if err != nil {
// fmt.Println(err)
// w.WriteHeader(http.StatusInternalServerError)
// }
// vehicles := []fleetsstorage.Vehicle{}
// for i, vehiicle := range resp.Vehicles {
// if len(resp.Vehicles[i].Bookings) == 0 {
// v := vehiicle.ToStorageType()
// vehicles = append(vehicles, v)
// }
// }
// fmt.Println(vehicles)
// fmt.Println("////////////////////////////////////////:")
// h.Renderer.UnbookingVehicles(w, r, vehicles)
// }
//////////////////////////////beneificiare list///////////
func (h ApplicationHandler) AdminStatBeneficaires(w http.ResponseWriter, r *http.Request) {
beneficiaries, err := h.services.GetBeneficiaries()
@ -519,7 +486,6 @@ func (h ApplicationHandler) AdminStatBeneficaires(w http.ResponseWriter, r *http
}
cacheid := uuid.NewString()
h.cache.PutWithTTL(cacheid, beneficiaries, 1*time.Hour)
fmt.Println(beneficiaries)
h.Renderer.AdminStatBeneficaires(w, r, beneficiaries, cacheid)
}