Laptimes and sectors are now fixed
This commit is contained in:
@@ -120,7 +120,7 @@ namespace Test_Merge
|
||||
public List<int> GetSectorsFromLapTime(string driverName,int lap)
|
||||
{
|
||||
int driverId = GetDriverID(driverName);
|
||||
string selectQuery = "SELECT Sector1,Sector2,Sector3 FROM Stats WHERE DriverID = @driverID AND Lap = @Lap";
|
||||
string selectQuery = "SELECT Sector1,Sector2,Sector3 FROM Stats WHERE DriverID = @driverID AND Lap = @lap";
|
||||
List<int> result = new List<int>();
|
||||
using (var command = new SQLiteCommand(selectQuery, Connection))
|
||||
{
|
||||
@@ -131,8 +131,9 @@ namespace Test_Merge
|
||||
SQLiteDataReader reader = command.ExecuteReader();
|
||||
while (reader.Read())
|
||||
{
|
||||
int sectorTime = reader.GetInt32(0);
|
||||
result.Add(sectorTime);
|
||||
result.Add(reader.GetInt32(0));
|
||||
result.Add(reader.GetInt32(1));
|
||||
result.Add(reader.GetInt32(2));
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user