This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Clean up lookups in spotlight.

  • Loading branch information...
1 parent c15a87b commit 51ef0050523efb6c5c2b588027973e4e7018796d @bsimpson63 bsimpson63 committed Feb 27, 2013
Showing with 3 additions and 6 deletions.
  1. +0 −1 r2/r2/models/listing.py
  2. +3 −5 r2/r2/templates/spotlightlisting.html
View
@@ -191,5 +191,4 @@ def listing(self):
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

0 comments on commit 51ef005

Please sign in to comment.