#NEWLINE# def statements_post( req_dict ) : #NEWLINE# #INDENT# auth = req_dict [ 'auth' ] #NEWLINE# if isinstance ( req_dict [ 'body' ] , dict ) : #NEWLINE# #INDENT# body = [ req_dict [ 'body' ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# body = req_dict [ 'body' ] #NEWLINE# #UNINDENT# stmt_responses = process_body ( body , auth , req_dict [ 'headers' ] [ 'X-Experience-API-Version' ] , req_dict . get ( 'payload_sha2s' , None ) ) #NEWLINE# stmt_ids = [ stmt_tup [ 0 ] for stmt_tup in stmt_responses ] #NEWLINE# stmts_to_void = [ str ( stmt_tup [ 1 ] ) for stmt_tup in stmt_responses if stmt_tup [ 1 ] ] #NEWLINE# check_activity_metadata . delay ( stmt_ids ) #NEWLINE# if stmts_to_void : #NEWLINE# #INDENT# void_statements . delay ( stmts_to_void ) #NEWLINE# #UNINDENT# return JsonResponse ( [ st for st in stmt_ids ] , safe = False )