diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-20 19:55:23 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-20 19:55:23 +0100 |
commit | c995c5b447cd32f4eb9f3cd9fc1865fd93962f24 (patch) | |
tree | 99390128e13da58b9f3059a4961fa4b2fb7c6cea /db/feed.php | |
parent | fae882f834409e18174e05d19deea39a3bf01e7b (diff) |
If a feed failed to update more than 10 times, show a hint in the web interface
Diffstat (limited to 'db/feed.php')
-rw-r--r-- | db/feed.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/db/feed.php b/db/feed.php index f5f3562ec..2960ecd25 100644 --- a/db/feed.php +++ b/db/feed.php @@ -52,6 +52,8 @@ use \OCP\AppFramework\Db\Entity; * @method void setDeletedAt(integer $value) * @method integer getArticlesPerUpdate() * @method void setArticlesPerUpdate(integer $value) + * @method integer getUpdateErrorCount() + * @method void setUpdateErrorCount(integer $value) */ class Feed extends Entity implements IAPI, \JsonSerializable { @@ -76,6 +78,7 @@ class Feed extends Entity implements IAPI, \JsonSerializable { protected $fullTextEnabled; protected $pinned; protected $updateMode; + protected $updateErrorCount; public function __construct(){ $this->addType('parentId', 'integer'); @@ -89,6 +92,7 @@ class Feed extends Entity implements IAPI, \JsonSerializable { $this->addType('ordering', 'integer'); $this->addType('fullTextEnabled', 'boolean'); $this->addType('updateMode', 'integer'); + $this->addType('updateErrorCount', 'integer'); } @@ -114,7 +118,8 @@ class Feed extends Entity implements IAPI, \JsonSerializable { 'ordering', 'fullTextEnabled', 'pinned', - 'updateMode' + 'updateMode', + 'updateErrorCount' ]); $url = parse_url($this->link)['host']; |