Commit 3bffffdb authored by 钟尚武's avatar 钟尚武

Merge branch 'feature/weibo' into 'master'

fix

See merge request alpha/saturn!106
parents 41d4fa24 2dc8dfc2
......@@ -139,7 +139,7 @@ class Command(BaseCommand):
for info in reply:
for image in info["images"]:
counter[image] += 1
comment["images"] = [url for url, count in counter if count > 1]
comment["images"] = [url for url, count in counter.items() if count > 1]
for info in reply:
if self.filter_second_comment(info["content"], comment["images"], info["images"]):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment