Skip to content

Instantly share code, notes, and snippets.

@dvydra
Created March 3, 2010 16:38
Show Gist options
  • Save dvydra/320739 to your computer and use it in GitHub Desktop.
Save dvydra/320739 to your computer and use it in GitHub Desktop.
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