diff options
author | martin.von.loewis <devnull@localhost> | 2008-05-12 10:17:44 +0000 |
---|---|---|
committer | martin.von.loewis <devnull@localhost> | 2008-05-12 10:17:44 +0000 |
commit | 4831fc1a3110824b991bab16ea622e0755b81d72 (patch) | |
tree | 4535d3a848d9994f6e8122dbd3bb7674046571e5 /find_dups.py | |
parent | 1ba3f501209a30df198573906cd943b5d7240d47 (diff) | |
download | decorator-4831fc1a3110824b991bab16ea622e0755b81d72.tar.gz |
Print out duplicate emails that need manual resolution.
Diffstat (limited to 'find_dups.py')
-rw-r--r-- | find_dups.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/find_dups.py b/find_dups.py index 223eb6e..9e231f7 100644 --- a/find_dups.py +++ b/find_dups.py @@ -73,6 +73,7 @@ def dup_users(): for user in store.get_users(): email = user['email'] by_email[email] = by_email.get(email, []) + [user['name']] + rest = [] print "BEGIN;" for email, users in by_email.items(): if len(users) == 1: continue @@ -83,6 +84,10 @@ def dup_users(): unused.add(user) if len(users-unused)<=1: mail_unused_user(email, users, unused) + else: + rest.append((email, users, unused)) print "COMMIT;" + for r in rest: + print r dup_users() |