aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-03 23:50:58 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-03 23:50:58 +0100
commit76fbb07dc3d296e3f545e8135393b94afcb8f01d (patch)
tree02cdc30a441a42fe8b7558b5ff28547012b03371 /pyaggr3g470r/models.py
parentUpdated README. (diff)
downloadnewspipe-76fbb07dc3d296e3f545e8135393b94afcb8f01d.tar.gz
newspipe-76fbb07dc3d296e3f545e8135393b94afcb8f01d.tar.bz2
newspipe-76fbb07dc3d296e3f545e8135393b94afcb8f01d.zip
Try to speed the search of article.
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r--pyaggr3g470r/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index 90801edc..de360697 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -66,6 +66,9 @@ class Article(Document):
]
}
+ def __eq__(self, other):
+ return self.link == other
+
def __str__(self):
return 'Article: %s' % self.title
bgstack15