(self, doc_id)
return result if result is None else result[0]
Fetch the original title name  of the doc.
Fetch the original title name  of the doc.
Fetch the original title name of the doc .
def get_original_title(self, doc_id):
        """Fetch the original title name  of the doc."""
        cursor = self.connection.cursor()
        cursor.execute(
            "SELECT original_title FROM documents WHERE id = ?",
            (doc_id,)
        )
        result = cursor.fetchone()
        cursor.close()
        return result if result is None else result[0]
def get_original_title ( self , doc_id ) : cursor = self . connection . cursor ( ) cursor . execute ( "SELECT original_title FROM documents WHERE id = ?" , ( doc_id , ) ) result = cursor . fetchone ( ) cursor . close ( ) return result if result is None else result [ 0 ]