From 3d058946b6825dfe8a7fb86d105890cada6dc771 Mon Sep 17 00:00:00 2001 From: volpino Date: Fri, 21 Sep 2012 17:10:51 +0200 Subject: [PATCH] euscanwww: making get parameter shorter Signed-off-by: volpino --- euscanwww/djeuscan/feeds.py | 2 +- euscanwww/djeuscan/templates/euscan/world_scan.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/euscanwww/djeuscan/feeds.py b/euscanwww/djeuscan/feeds.py index 3455de5..7399618 100644 --- a/euscanwww/djeuscan/feeds.py +++ b/euscanwww/djeuscan/feeds.py @@ -247,7 +247,7 @@ class WorldScanFeed(BaseFeed): def _items(self, data): packages = [] - for pkg_name in data["options"].getlist("package", []): + for pkg_name in data["options"].getlist("p", []): if "/" in pkg_name: cat, name = pkg_name.split("/", 1) pkg = Package.objects.filter(name=name, category=cat) diff --git a/euscanwww/djeuscan/templates/euscan/world_scan.html b/euscanwww/djeuscan/templates/euscan/world_scan.html index 30a029e..14dd428 100644 --- a/euscanwww/djeuscan/templates/euscan/world_scan.html +++ b/euscanwww/djeuscan/templates/euscan/world_scan.html @@ -12,7 +12,7 @@
  • feed + href="{% url "world_scan_feed" %}?p={{ packages|join:"&p=" }}"> World scan feed