<s> from django . core . management . base import BaseCommand <EOL> from mturk . main . management . commands . db_update_agregates import update_crawl_agregates <EOL> from django . conf import settings <EOL> from utils . sql import execute_sql <EOL> import os <EOL> class Command ( BaseCommand ) : <EOL> def handle ( self , ** options ) : <EOL> update_crawl_agregates ( only_new = False ) <EOL> f = open ( os . path . join ( settings . ROOT_PATH , '<STR_LIT>' ) , "<STR_LIT:rb>" ) <EOL> progress = <NUM_LIT:10> <EOL> execute_sql ( "<STR_LIT>" ) <EOL> for i , id in enumerate ( f ) : <EOL> id = id . strip ( ) <EOL> execute_sql ( "<STR_LIT>" % id ) <EOL> execute_sql ( "<STR_LIT>" % id ) <EOL> if i % progress == <NUM_LIT:0> : <EOL> print "<STR_LIT>" % i <EOL> execute_sql ( "<STR_LIT>" ) <EOL> execute_sql ( "<STR_LIT>" ) </s>
