Commit 2dc8dfc2 authored by zhongshangwu's avatar zhongshangwu

fix

parent 12dfbb9a
......@@ -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