aboutsummaryrefslogtreecommitdiff
path: root/src/web/models
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 14:50:41 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 14:50:41 +0100
commit0349aa5769f291f81fd97065246712c17bd84789 (patch)
treea40accfb0a1e3b6099c2f92c15530bd558360101 /src/web/models
parentvarious improvements to the crawler (better use of coroutines, test if an art... (diff)
downloadnewspipe-0349aa5769f291f81fd97065246712c17bd84789.tar.gz
newspipe-0349aa5769f291f81fd97065246712c17bd84789.tar.bz2
newspipe-0349aa5769f291f81fd97065246712c17bd84789.zip
added tag to the API whitelist
Diffstat (limited to 'src/web/models')
-rw-r--r--src/web/models/article.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py
index 5261cb0d..87ad1a9a 100644
--- a/src/web/models/article.py
+++ b/src/web/models/article.py
@@ -71,7 +71,11 @@ class Article(db.Model, RightMixin):
@staticmethod
def _fields_base_read():
return {'id', 'entry_id', 'link', 'title', 'content', 'date',
- 'retrieved_date', 'user_id'}
+ 'retrieved_date', 'user_id', 'tags'}
+
+ @staticmethod
+ def _fields_api_write():
+ return {'tags'}
def __repr__(self):
return "<Article(id=%d, entry_id=%s, title=%r, " \
bgstack15