From 2e0b1dba60220f578d56a58af08d7a02e8ebd806 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 24 Mar 2005 20:02:19 +0000 Subject: [PATCH] Bugfix. (SQLObject.selectBy no tiene un parametro limit) --- src/sercom/sqlo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sercom/sqlo.py b/src/sercom/sqlo.py index aba430a..c81e066 100644 --- a/src/sercom/sqlo.py +++ b/src/sercom/sqlo.py @@ -16,7 +16,7 @@ class BaseSQLObject(SQLObject): @classmethod def by(cls, **kw): try: - return cls.selectBy(limit=1, **kw)[0] + return cls.selectBy(**kw)[0] except IndexError: raise SQLObjectNotFound, "The object %s with columns %s does not exist" % (cls.__name__, kw) -- 2.43.0