euscanwww: making get parameter shorter
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
75b5bcc32f
commit
3d058946b6
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user