C14L / dtr5

Meetup app for Reddit users based on subreddit subscriptions.
https://reddmeet.com
12 stars 2 forks source link

on some profiles, some (not all) subreddits are listed twice. #71

Open C14L opened 8 years ago

C14L commented 8 years ago

Fixed the symptoms but not the cause. Dupes are removed, and the exception raised by get() is handled. Still need to set Subscribed.META.unique_together = [user, sr]


There are about 30 users with duplicate Sr subscriptions.

Subscribed.objects.values('user', 'sr').annotate(Count('id')).order_by().filter(id__count__gt=1)

Remove dupes and add Subscribed.META.unique_together = [user, sr]

Example: http://i.imgur.com/KOREZDW.jpg