zeeguu/core/model/word_knowledge/word_interaction_history.py
def save_to_db(self, db_session):
        """

            after this the interaction_history_json will be the result of converting  interaction_history to json
        :return:
        """
        #self.interaction_history_json = "None"
        self.interaction_history_json = json.dumps([e.to_json() for e in self.interaction_history])
        db_session.add(self)
        db_session.commit()


            after this the interaction_history_json will be the result of converting  interaction_history to json
        :return:
        
after this the interaction_history_json will be the result of converting  interaction_history to json
after this the interaction_history_json will be the result of converting interaction_history to json
def save_to_db(self, db_session):
        self.interaction_history_json = json.dumps([e.to_json() for e in self.interaction_history])
        db_session.add(self)
        db_session.commit()
def save_to_db ( self , db_session ) : self . interaction_history_json = json . dumps ( [ e . to_json ( ) for e in self . interaction_history ] ) db_session . add ( self ) db_session . commit ( )
after this the interaction_history_json will be the result of converting  interaction_history to json
after this the interaction_history_json will be the result of converting interaction_history to json
"""

            after this the interaction_history_json will be the result of converting  interaction_history to json
        :return:
        """ #self.interaction_history_json = "None"
None
self
db_session