Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

select_one is return the first records? #411

Open
wujifang opened this issue Jan 11, 2023 · 0 comments
Open

select_one is return the first records? #411

wujifang opened this issue Jan 11, 2023 · 0 comments

Comments

@wujifang
Copy link

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]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant