def update_common(obj, report):
<EOL>if obj['<STR_LIT>'] >= yesterday:<EOL><INDENT>report['<STR_LIT>'] += <NUM_LIT:1><EOL>if obj['<STR_LIT>'] >= last_month:<EOL><INDENT>report['<STR_LIT>'] += <NUM_LIT:1><EOL>if obj['<STR_LIT>'] >= last_year:<EOL><INDENT>report['<STR_LIT>'] += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>
do updated_at checks