#NEWLINE# def _append_file( self , session , reservation_id , file_sent ) : #NEWLINE# #INDENT# user_used_experiment = session . query ( model . DbUserUsedExperiment ) . filter_by ( reservation_id = reservation_id ) . first ( ) #NEWLINE# if ( file_sent is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# db_file_sent = model . DbUserFile ( user_used_experiment , file_sent . file_path , file_sent . file_hash , file_sent . timestamp_before , file_sent . file_info , ( file_sent . response . commandstring if ( file_sent . response is not None ) else None ) , file_sent . timestamp_after ) #NEWLINE# session . add ( db_file_sent ) #NEWLINE# return db_file_sent