Commit 3aacba1f by Ashley Penney

Run over each file and run the import. We could probably do this as a…

Run over each file and run the import.  We could probably do this as a try/except and not delete if the output of the import failed but it may be simply easier to refetch those files from the S3 backup and try again.
parent 05b36bdd
......@@ -43,7 +43,9 @@ class Command(BaseCommand):
settings.PEARSON['LOCAL_IMPORT'], options['mode'])
s3(settings.PEARSON['LOCAL_IMPORT'],
settings.PEARSON['BUCKET'], options['mode'])
call_command('pearson_import', 'dest_from_settings')
for file in os.listdir(settings.PEARSON['LOCAL_IMPORT']):
call_command('pearson_import_conf_zip', 'dest_from_settings')
os.remove(file)
def export_pearson():
call_command('pearson_export_cdd', 'dest_from_settings')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment