

def first(self):
    res = self.execute()
    res.fill_cache(1)
    try:
        return res._result_cache[0]
    except IndexError:
        pass

dataset/ETHPy150Open coleifer/peewee/peewee.py SelectQuery.first/original