fix bugs
continuous-integration/drone/push Build is passing Details

master
mohamed 2 years ago
parent 920d4b995b
commit b97f7c305c

Binary file not shown.

Binary file not shown.

@ -10,7 +10,7 @@ namespace Dto.Classe
{
public string Temps { get; set; }
public long IdSession { get; set; }
public int Numero { get; set; }
public List<PointDTO> Points { get; set; }
}
}

@ -16,6 +16,7 @@ namespace Dto.Factories
tourDTO.IdSession = modele.IdSession;
tourDTO.Temps = modele.Temps;
tourDTO.Numero = modele.Numero;
tourDTO.Points = modele.Points.Select(e => e.ModeleToDTO()).ToList();
return tourDTO;

@ -30,6 +30,7 @@ namespace Entity_Framework.Factories
R_Pedal = modele.RPedal,
G_Lon = modele.GLong,
G_Lat = modele.GLat,
V_Car = modele.VCar,
};
}

@ -99,7 +99,7 @@ namespace Extraction_Donnees.Extraction_EXECL
}
else
{
if (cpt != 2 && cpt % 2 == 0) continue; // saute la moitié des points (omptimization)
if (cpt != 2 && cpt % 2 == 0) continue; // saute la moitié des points (optimization)
try
{
var point = new Point(
@ -138,7 +138,7 @@ namespace Extraction_Donnees.Extraction_EXECL
return session;
}
public static Session TestExcel(string filePath)
public static async Task<Session> TestExcel(string filePath)
{
var session = new Session();
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);

@ -28,8 +28,9 @@ Console.WriteLine("Tours : " + sesh.Tours.Count);
*/
IApi data = new Extraction();
Session session = await Excel.TestExcel2("C:\\Users\\Jolys Enzo\\home\\BUT\\Projet\\Sae4.01\\Projet\\R-Dash_APP\\Extraction_Excel_Test\\tmp.xls");
//"C:\\Users\\Jolys Enzo\\home\\BUT\\Projet\\Sae4.01\\Projet\\R-Dash_APP\\Extraction_Excel_Test\\tmp.xls"
Session session = await Excel.TestExcel2( "C:\\Users\\zinn1\\source\\repos\\Serveur-Api\\Sources\\Extraction_Excel_Test\\tmp.xls");
Console.WriteLine("Start !");
await data.AddSession(session, "test_PILOTE", "test_CIRCUIT","Session_test","Championnat");
//await data.AddSession(session, "test_PILOTE", "test_CIRCUIT","Session_test","Championnat");
Console.WriteLine(session.ToString());
Console.WriteLine("Fini !");

Loading…
Cancel
Save