diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-08 14:50:41 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-08 14:50:41 +0100 |
commit | 0349aa5769f291f81fd97065246712c17bd84789 (patch) | |
tree | a40accfb0a1e3b6099c2f92c15530bd558360101 /src/web/models | |
parent | various improvements to the crawler (better use of coroutines, test if an art... (diff) | |
download | newspipe-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.py | 6 |
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, " \ |