<s> from __future__ import unicode_literals <EOL> from django . core . management . base import BaseCommand <EOL> from ... settings import get_subscriber_model <EOL> from ... sync import sync_subscriber <EOL> class Command ( BaseCommand ) : <EOL> help = "<STR_LIT>" <EOL> def handle ( self , * args , ** options ) : <EOL> qs = get_subscriber_model ( ) . objects . filter ( customer__isnull = True ) <EOL> count = <NUM_LIT:0> <EOL> total = qs . count ( ) <EOL> for subscriber in qs : <EOL> count += <NUM_LIT:1> <EOL> perc = int ( round ( <NUM_LIT:100> * ( float ( count ) / float ( total ) ) ) ) <EOL> print ( <EOL> "<STR_LIT>" . format ( <EOL> count , total , perc , subscriber . email , subscriber . pk <EOL> ) <EOL> ) <EOL> sync_subscriber ( subscriber ) </s>
