Created
March 3, 2010 16:38
-
-
Save dvydra/320739 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Command(BaseCommand): | |
| def handle(self, *args, **options): | |
| recently_posting_users = Profile.objects.order_by(filter(username__startswith = 'user:')[:50] | |
| user_ids = [u.username.split(':')[1] for u in recently_posting_users] | |
| print "we have %d unmigrated users" % len(user_ids) | |
| for user_ids in x_at_a_time() | |
| user_json = lookup_users(?) | |
| for user in user_json: | |
| print "matched username to " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment