From 9e7f604d47d56a27286c44da7d29caa8c0b43a58 Mon Sep 17 00:00:00 2001 From: Johannes Paehr Date: Thu, 28 Dec 2017 11:42:04 +0100 Subject: [PATCH] update accepted minimum lap time --- training.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/training.cpp b/training.cpp index a8722e9..c4ca27f 100644 --- a/training.cpp +++ b/training.cpp @@ -57,13 +57,15 @@ Training::Training(QWidget * parent, DataBase * db) SLOT(ResetShell())); // fill minSecTimes vector - statement = "select minsec1, minsec2, minsec3 from renndauer order by id " + statement = "select minsec1, minsec2, minsec3, mindestRundenDauer from " + "renndauer order by id " "DESC limit 1"; vector> res; - res = db->getData(statement, 3); + res = db->getData(statement, 4); this->minSecTime.append(res[0][0].toInt()); this->minSecTime.append(res[0][1].toInt()); this->minSecTime.append(res[0][2].toInt()); + this->minSecTime.append(res[0][3].toInt()); } void Training::ResetShell() { this->VecShell.clear();