From 5746f5374b4ca7abb6d30431ead97824ad596b56 Mon Sep 17 00:00:00 2001 From: ko2sec Date: Tue, 5 Jul 2022 18:34:37 +0300 Subject: [PATCH] bug fix #254 --- common/records.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/records.py b/common/records.py index 7f1ce951..b4a2c4cc 100644 --- a/common/records.py +++ b/common/records.py @@ -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)