sdispater / orator

The Orator ORM provides a simple yet beautiful ActiveRecord implementation.

Home Page:https://orator-orm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

select_one is return the first records?

wujifang opened this issue · comments

commented
def select_one(self, query, bindings=None):
    if bindings is None:
        bindings = {}

    records = self.select(query, bindings)

    if len(records):
        return records[1]

    return None

I think return records[1] should change to return records[0]