unique-unfix
This commit is contained in:
parent
45a827de64
commit
8ba5552943
|
@ -66,11 +66,9 @@ class ShoutsCache:
|
||||||
for s in shouts:
|
for s in shouts:
|
||||||
for a in s.authors:
|
for a in s.authors:
|
||||||
ShoutsCache.by_author[a.slug] = ShoutsCache.by_author.get(a.slug, [])
|
ShoutsCache.by_author[a.slug] = ShoutsCache.by_author.get(a.slug, [])
|
||||||
if a not in ShoutsCache.by_topic[a.slug]:
|
|
||||||
ShoutsCache.by_author[a.slug].append(s)
|
ShoutsCache.by_author[a.slug].append(s)
|
||||||
for t in s.topics:
|
for t in s.topics:
|
||||||
ShoutsCache.by_topic[t.slug] = ShoutsCache.by_topic.get(t.slug, [])
|
ShoutsCache.by_topic[t.slug] = ShoutsCache.by_topic.get(t.slug, [])
|
||||||
if t not in ShoutsCache.by_topic[t.slug]:
|
|
||||||
ShoutsCache.by_topic[t.slug].append(s)
|
ShoutsCache.by_topic[t.slug].append(s)
|
||||||
print("[zine.cache] indexed by %d topics " % len(ShoutsCache.by_topic.keys()))
|
print("[zine.cache] indexed by %d topics " % len(ShoutsCache.by_topic.keys()))
|
||||||
print("[zine.cache] indexed by %d authors " % len(ShoutsCache.by_author.keys()))
|
print("[zine.cache] indexed by %d authors " % len(ShoutsCache.by_author.keys()))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user