(self, block)
Commit the Story to database.

        Args:
            block (dict): Block to add.
Commit the Story to database.
Commit the Story to database .
def _commit(self, block):
        """Commit the Story to database.

        Args:
            block (dict): Block to add.
        """
        story_blocks = json.loads(self.story.content)
        story_blocks.append(block)
        self.story.content = json.dumps(story_blocks)
        db_session.add(self.story)
        db_session.commit()
def _commit ( self , block ) : story_blocks = json . loads ( self . story . content ) story_blocks . append ( block ) self . story . content = json . dumps ( story_blocks ) db_session . add ( self . story ) db_session . commit ( )