#NEWLINE# def log_interaction_event( tiid , ip , event , headers , timestamp ) : #NEWLINE# #INDENT# new_interaction = Interaction ( tiid = tiid , timestamp = timestamp , event = event , ip = ip , headers = headers ) #NEWLINE# db . session . add ( new_interaction ) #NEWLINE# commit ( db )