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();