summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-11-27 22:04:44 +0100
committerDan McGee <dan@archlinux.org>2010-11-27 22:04:44 +0100
commit14c8833cf0e1e2e6bd2b59f9da9944757aa47c70 (patch)
tree3a08e1ede2c604d8ea5e9ba5691919c1ed5a092a
parent9acae339ffefa1193b25e28efc3dc4c3533b7188 (diff)
downloadarchweb-14c8833cf0e1e2e6bd2b59f9da9944757aa47c70.tar.gz
archweb-14c8833cf0e1e2e6bd2b59f9da9944757aa47c70.tar.xz
Fix feeds for case-sensitive databases
This worked in MySQL because of it's case-insensitive matching, but does not work in other databases unless we coerce the value. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--feeds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index e7462bc..cbcccd7 100644
--- a/feeds.py
+++ b/feeds.py
@@ -71,7 +71,7 @@ class PackageFeed(Feed):
obj['arch'] = a
if repo != '':
# feed for a single arch AND repo
- r = Repo.objects.get(name=repo)
+ r = Repo.objects.get(name__iexact=repo)
qs = qs.filter(repo=r)
obj['repo'] = r
obj['qs'] = qs[:50]