diff options
author | Aldo Gunsing <dev@aldogunsing.nl> | 2018-11-27 14:37:41 +0300 |
---|---|---|
committer | Aldo Gunsing <dev@aldogunsing.nl> | 2018-11-29 20:33:57 +0300 |
commit | d60546d20718efa3767f3134465020b731d72280 (patch) | |
tree | 6bef8055b469b6ed5442205596e9db0e02f90273 | |
parent | 420fdcdacd7079f897c9c3176352acbf3f00f47d (diff) |
Use db.read_category instead of removed db.category_exists
-rw-r--r-- | plugins/backend/decsync/decsyncInterface.vala | 2 | ||||
-rw-r--r-- | plugins/backend/decsync/decsyncListeners.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/backend/decsync/decsyncInterface.vala b/plugins/backend/decsync/decsyncInterface.vala index 84599d16..a1bc8649 100644 --- a/plugins/backend/decsync/decsyncInterface.vala +++ b/plugins/backend/decsync/decsyncInterface.vala @@ -470,7 +470,7 @@ public class FeedReader.decsyncInterface : Peas.ExtensionBase, FeedServerInterfa public string createCategory(string title, string? parentID) { string? catID = m_db.getCategoryID(title); - while (catID == null || m_db.category_exists(catID)) + while (catID == null || m_db.read_category(catID) != null) { catID = "catID%05d".printf(Random.int_range(0, 100000)); } diff --git a/plugins/backend/decsync/decsyncListeners.vala b/plugins/backend/decsync/decsyncListeners.vala index 386ae361..8faaaaf5 100644 --- a/plugins/backend/decsync/decsyncListeners.vala +++ b/plugins/backend/decsync/decsyncListeners.vala @@ -266,7 +266,7 @@ public class FeedReader.DecsyncListeners : GLib.Object { private static void addCategory(decsyncInterface plugin, string catID) { - if (catID == plugin.uncategorizedID() || catID == CategoryID.MASTER.to_string() || plugin.m_db.category_exists(catID)) + if (catID == plugin.uncategorizedID() || catID == CategoryID.MASTER.to_string() || plugin.m_db.read_category(catID) != null) { return; } |