euscanwww: making get parameter shorter
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
57c80cf954
commit
15d67b3060
@ -247,7 +247,7 @@ class WorldScanFeed(BaseFeed):
|
|||||||
|
|
||||||
def _items(self, data):
|
def _items(self, data):
|
||||||
packages = []
|
packages = []
|
||||||
for pkg_name in data["options"].getlist("package", []):
|
for pkg_name in data["options"].getlist("p", []):
|
||||||
if "/" in pkg_name:
|
if "/" in pkg_name:
|
||||||
cat, name = pkg_name.split("/", 1)
|
cat, name = pkg_name.split("/", 1)
|
||||||
pkg = Package.objects.filter(name=name, category=cat)
|
pkg = Package.objects.filter(name=name, category=cat)
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
||||||
<a title="World scan 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
|
World scan feed
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user