def get(self, key, default=None):
        rv = self.db.execute(
                'SELECT value FROM preferences WHERE key=?', (key, )).fetchone()

        if rv is None:
            return default

        return rv[0]
dataset/ETHPy150Open posativ/isso/isso/db/preferences.py/Preferences.get/original