mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
bug fix #254
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ class RecordCollection(object):
|
||||
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user