Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3 from firemyst/patch-1

quick fixes result duplicates in urls, users, lists, replies and tags.
  • Loading branch information...
commit 3474e0a18a324d23138554fc76a6b270919e584a 2 parents a6eb544 + 98b78e6
Ivo Wetzel authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 ttp.py
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.