mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Clean up lookups in spotlight.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user