(self)
return c.fetchone()['count']
Returns:
            int: count of open channels
Returns:
            int: count of open channels
Returns : int : count of open channels
def n_open_channels(self):
        """
        Returns:
            int: count of open channels
        """
        c = self.conn.cursor()
        c.execute('SELECT COUNT(*) as count FROM `channels` WHERE `state` = ?',
                  [ChannelState.OPEN.value])
        return c.fetchone()['count']
def n_open_channels ( self ) : c = self . conn . cursor ( ) c . execute ( 'SELECT COUNT(*) as count FROM `channels` WHERE `state` = ?' , [ ChannelState . OPEN . value ] ) return c . fetchone ( ) [ 'count' ]