#NEWLINE# def get_metadata( self , key ) : #NEWLINE# #INDENT# cursor = self . cursor #NEWLINE# cursor . execute ( 'SELECT value FROM gauged_metadata WHERE `key` = %s' , ( key , ) ) #NEWLINE# result = cursor . fetchone ( ) #NEWLINE# return ( result [ 0 ] if result else None )