aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/controllers/article.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/pyaggr3g470r/controllers/article.py b/pyaggr3g470r/controllers/article.py
index 0ec53a2f..bcd73e99 100644
--- a/pyaggr3g470r/controllers/article.py
+++ b/pyaggr3g470r/controllers/article.py
@@ -1,7 +1,6 @@
from sqlalchemy import func
from bootstrap import db
-import conf
from .abstract import AbstractController
from pyaggr3g470r.models import Article
@@ -15,13 +14,6 @@ class ArticleController(AbstractController):
self.update({'id': article.id}, {'readed': True})
return article
- def delete(self, obj_id):
- obj = super(ArticleController, self).delete(obj_id)
- if not conf.ON_HEROKU:
- import pyaggr3g470r.search as fastsearch
- fastsearch.delete_article(self.user_id, obj.feed_id, obj_id)
- return obj
-
def challenge(self, ids):
"""Will return each id that wasn't found in the database."""
for id_ in ids:
bgstack15