-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dupe profile cleanup part 2 #2696
Conversation
profile.handle = profile.handle.replace('@', '') | ||
profile.save() | ||
|
||
dupes = Profile.objects.exclude(handle=None).annotate(handle_lower=Lower("handle")).values('handle_lower').annotate(handle_lower_count=Count('handle_lower')).filter(handle_lower_count__gt=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (198 > 120 characters)
note: even better than cleaning up duplicate profiles would be to figure out how/why the |
Codecov Report
@@ Coverage Diff @@
## master #2696 +/- ##
=========================================
- Coverage 29.93% 29.9% -0.03%
=========================================
Files 162 162
Lines 13052 13064 +12
Branches 1743 1745 +2
=========================================
Hits 3907 3907
- Misses 9021 9033 +12
Partials 124 124
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
duplicate profiles, but now also handles:
Checklist
Affected core subsystem(s)
Testing
tested:
kennethashley
market protocol
pelsasser
Refers/Fixes
self