kennethreitz / records

SQL for Humans™
https://pypi.python.org/pypi/records/
ISC License
7.16k stars 574 forks source link

Make .one() use .first() under the hood #148

Closed mcdallas closed 6 years ago

mcdallas commented 6 years ago

There is a lot of repeated code in .first() and .one() so I removed the duplicate code and made one() call first() if there is no second element.

vlcinsky commented 6 years ago

@mcdallas thanks. Good code reuse.