select_one is return the first records?
wujifang opened this issue · comments
wujf 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]