Skip to content

Commit

Permalink
fixing duplicate tweet issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodges committed Jul 2, 2014
1 parent a8c15e6 commit 71efaae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locus/fbapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def get_storypoints(request, user):
point.transform(3857)
if point.within(geom):
tweet['point'] = point
if tweet.has_key('point'): #TODO: stupid hack
if not any(x['id']== tweet['id'] for x in included_tweets):
included_tweets.append(tweet)

#TODO - don't store (most) storypoints locally - only posts.
Expand Down Expand Up @@ -327,7 +327,7 @@ def get_storypoints(request, user):
}
features.append(feature)

for point in geo_tweets:
for point in included_tweets:
image = point['user']['profile_image_url']
source_user_id = None
try:
Expand Down

0 comments on commit 71efaae

Please sign in to comment.