diff --git a/resources/desktop/com.github.rssguard.appdata.xml b/resources/desktop/com.github.rssguard.appdata.xml index 2b9762c14..bbb397f9e 100755 --- a/resources/desktop/com.github.rssguard.appdata.xml +++ b/resources/desktop/com.github.rssguard.appdata.xml @@ -30,7 +30,7 @@ https://martinrotter.github.io/donate/ - + none diff --git a/resources/sql/db_init_mysql.sql b/resources/sql/db_init_mysql.sql index b8c1fb522..df98dda73 100644 --- a/resources/sql/db_init_mysql.sql +++ b/resources/sql/db_init_mysql.sql @@ -97,7 +97,7 @@ CREATE TABLE IF NOT EXISTS Feeds ( username TEXT, password TEXT, update_type INTEGER(1) NOT NULL CHECK (update_type >= 0), - update_interval INTEGER NOT NULL DEFAULT 15 CHECK (update_interval >= 5), + update_interval INTEGER NOT NULL DEFAULT 15 CHECK (update_interval >= 3), type INTEGER, account_id INTEGER NOT NULL, custom_id TEXT, diff --git a/resources/sql/db_init_sqlite.sql b/resources/sql/db_init_sqlite.sql index 47cbf6533..b8b87952c 100644 --- a/resources/sql/db_init_sqlite.sql +++ b/resources/sql/db_init_sqlite.sql @@ -91,7 +91,7 @@ CREATE TABLE IF NOT EXISTS Feeds ( username TEXT, password TEXT, update_type INTEGER(1) NOT NULL CHECK (update_type >= 0), - update_interval INTEGER NOT NULL CHECK (update_interval >= 5) DEFAULT 15, + update_interval INTEGER NOT NULL CHECK (update_interval >= 3) DEFAULT 15, type INTEGER, account_id INTEGER NOT NULL, custom_id TEXT, diff --git a/src/miscellaneous/databasequeries.cpp b/src/miscellaneous/databasequeries.cpp index cac8d711d..1a47ea171 100755 --- a/src/miscellaneous/databasequeries.cpp +++ b/src/miscellaneous/databasequeries.cpp @@ -168,8 +168,11 @@ bool DatabaseQueries::purgeRecycleBin(const QSqlDatabase& db) { return q.exec(); } -QMap> DatabaseQueries::getMessageCountsForCategory(const QSqlDatabase& db, const QString& custom_id, int account_id, - bool including_total_counts, bool* ok) { +QMap> DatabaseQueries::getMessageCountsForCategory(const QSqlDatabase& db, + const QString& custom_id, + int account_id, + bool including_total_counts, + bool* ok) { QMap> counts; QSqlQuery q(db); @@ -331,7 +334,8 @@ int DatabaseQueries::getMessageCountsForBin(const QSqlDatabase& db, int account_ } } -QList DatabaseQueries::getUndeletedMessagesForFeed(const QSqlDatabase& db, const QString& feed_custom_id, int account_id, bool* ok) { +QList DatabaseQueries::getUndeletedMessagesForFeed(const QSqlDatabase& db, const QString& feed_custom_id, int account_id, + bool* ok) { QList messages; QSqlQuery q(db); @@ -1268,7 +1272,14 @@ bool DatabaseQueries::editFeed(const QSqlDatabase& db, int parent_id, int feed_i q.bindValue(QSL(":update_interval"), auto_update_interval); q.bindValue(QSL(":type"), feed_format); q.bindValue(QSL(":id"), feed_id); - return q.exec(); + + bool suc = q.exec(); + + if (!suc) { + qCritical("There was error when editing feed: %s", qPrintable(q.lastError().text())); + } + + return suc; } bool DatabaseQueries::editBaseFeed(const QSqlDatabase& db, int feed_id, Feed::AutoUpdateType auto_update_type,