Skip to content

Commit

Permalink
Merge pull request #266 from ko2sec/master
Browse files Browse the repository at this point in the history
  • Loading branch information
shmilylty authored Jul 9, 2022
2 parents ae9b9bc + 5746f53 commit d090041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def one(self, default=None, as_dict=False, as_ordereddict=False):

# Ensure that we don't have more than one row.
try:
self[1]
return self[1]
except IndexError:
return self.first(default=default, as_dict=as_dict,
as_ordereddict=as_ordereddict)
Expand Down

0 comments on commit d090041

Please sign in to comment.