Permalink
Browse files

quick fixes result duplicates in urls, users, lists, replies and tags.

  • Loading branch information...
1 parent a6eb544 commit 98b78e6c647edfb4a5409400095c4688a19d4076 @firemyst firemyst committed Feb 16, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 ttp.py
View
@@ -97,11 +97,11 @@ class ParseResult(object):
'''
def __init__(self, urls, users, reply, lists, tags, html):
- self.urls = urls
- self.users = users
- self.lists = lists
- self.reply = reply
- self.tags = tags
+ self.urls = list(set(urls)) if urls else [] #fixes dups
+ self.users = list(set(users)) if users else []
+ self.lists = list(set(lists)) if lists else []
+ self.reply = list(set(reply)) if reply else []
+ self.tags = list(set(tags)) if tags else []
self.html = html

0 comments on commit 98b78e6

Please sign in to comment.