euscanwww: making get parameter shorter

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-09-21 17:10:51 +02:00 committed by Corentin Chary
parent 75b5bcc32f
commit 3d058946b6
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -12,7 +12,7 @@
<li>
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
<a title="World scan Feed"
href="{% url "world_scan_feed" %}?package={{ packages|join:"&package=" }}">
href="{% url "world_scan_feed" %}?p={{ packages|join:"&p=" }}">
World scan feed
</a>
</li>