Clean up lookups in spotlight.

This commit is contained in:
bsimpson63
2013-02-27 13:37:59 -05:00
parent c15a87be86
commit 51ef005052
2 changed files with 3 additions and 6 deletions

View File

@@ -191,5 +191,4 @@ class SpotlightListing(Listing):
res = Listing.listing(self)
for t in res.things:
t.num = ""
self.lookup = {t._fullname: t for t in res.things}
return Wrapped(self)

View File

@@ -29,11 +29,9 @@
%>
<div id="siteTable_organic" class="organic-listing">
%if thing.links:
%for tup in thing.links:
%if tup.link in thing.lookup:
${unsafe(thing.lookup[tup.link].render(display=False))}
%endif
%if thing.things:
%for link in thing.things:
${unsafe(link.render(display=False))}
%endfor
%endif