summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2011-04-22 12:00:46 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2011-04-22 12:00:46 (GMT)
commit796eceb01e05680041e54b4da1eb4178bd653d9e (patch)
tree8746607bb8842f5022018ea8ab4b063e1c8ce075
parent98ccb5276c20dbabb46193c440f658a76da53e53 (diff)
downloadsurveillao-796eceb01e05680041e54b4da1eb4178bd653d9e.zip
surveillao-796eceb01e05680041e54b4da1eb4178bd653d9e.tar.gz
surveillao-796eceb01e05680041e54b4da1eb4178bd653d9e.tar.bz2
regex : ignorecase
-rw-r--r--base/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/models.py b/base/models.py
index e35cc6e..b49593b 100644
--- a/base/models.py
+++ b/base/models.py
@@ -29,9 +29,9 @@ class Feed(models.Model):
return -1
added = 0
feed = feedparser.parse(self.url)
- re_in = re.compile(self.regex)
+ re_in = re.compile(self.regex, re.IGNORECASE)
if self.regex_exclude != '':
- re_out = re.compile(self.regex_exclude)
+ re_out = re.compile(self.regex_exclude, re.IGNORECASE)
else:
re_out = None
for e in feed.entries: