Commit ae440ddc authored by Dennis Rassmann's avatar Dennis Rassmann

update_notif: change SQL query

For some reason SELECT MAY(version) FROM versions does ignore some stuff it shouldn't.
Use the less elegant but nevertheless accurate ORDER BY / LIMIT 1 version instead.

Also changes the table name to the new place (which will be the final one).
Signed-off-by: Dennis Rassmann's avatarshowp1984 <showp1984@gmail.com>
parent c691bd93
......@@ -122,7 +122,7 @@ void getDBupd::run(void)
qDebug() << "Local: " << qApp->applicationVersion();
query.prepare("SELECT version, branch, changelog, date, url FROM versions WHERE version = (SELECT MAX(version) FROM versions) AND version > " + qApp->applicationVersion());
query.prepare("SELECT version, branch, changelog, date, url FROM hp_downloads WHERE cat='installer' AND version > " + qApp->applicationVersion() + "ORDER BY version DESC LIMIT 1");
query.exec();
while (query.next()) {
version = query.value(0).toFloat();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment