@cli.command()<EOL>def anon():
header(anon.__doc__)<EOL>filename = '<STR_LIT>'<EOL>candidates = Advice.objects(__raw__={<EOL>'<STR_LIT>': [<EOL>{'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}},<EOL>{'<STR_LIT:content>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}}<EOL>]<EOL>})<EOL>with open(filename, '<STR_LIT:wb>') as csvfile:<EOL><INDENT>writer = csv.writer(csvfile)<EOL>writer.writerow(csv.ANON_HEADER)<EOL>for idx, advice in enumerate(candidates, <NUM_LIT:1>):<EOL><INDENT>writer.writerow(csv.to_anon_row(advice))<EOL>echo('<STR_LIT:.>' if idx % <NUM_LIT:50> else white(idx), nl=False)<EOL><DEDENT>echo(white(idx) if idx % <NUM_LIT:50> else '<STR_LIT>')<EOL><DEDENT>success('<STR_LIT>', len(candidates))<EOL>
Check for candidates to anonymization