(self, doc_id)
return result if (result is None or len(result[0]) == 0) else [normalize(title) for title in result[0].split("\t")]
Fetch the hyper-linked titles of the doc for 'doc_id'.
Fetch the hyper-linked titles of the doc for 'doc_id'.
Fetch the hyper - linked titles of the doc for doc_id .
def get_hyper_linked(self, doc_id):
        """Fetch the hyper-linked titles of the doc for 'doc_id'."""
        cursor = self.connection.cursor()
        cursor.execute(
            "SELECT linked_title FROM documents WHERE id = ?",
            (doc_id,)
        )
        result = cursor.fetchone()
        cursor.close()
        return result if (result is None or len(result[0]) == 0) else [normalize(title) for title in result[0].split("\t")]
def get_hyper_linked ( self , doc_id ) : cursor = self . connection . cursor ( ) cursor . execute ( "SELECT linked_title FROM documents WHERE id = ?" , ( doc_id , ) ) result = cursor . fetchone ( ) cursor . close ( ) return result if ( result is None or len ( result [ 0 ] ) == 0 ) else [ normalize ( title ) for title in result [ 0 ] . split ( "\t" ) ]