From e38565345cf89903c9203e3df5182c08ff81d956 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 14 Sep 2014 16:01:47 -0500 Subject: [PATCH] no more split in contains, thanks Niphlod --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index d4c7e23c..d18e38f1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.9-stable+timestamp.2014.09.14.15.28.44 +Version 2.9.9-stable+timestamp.2014.09.14.16.01.43 diff --git a/gluon/dal.py b/gluon/dal.py index 3855386a..9d5e0fa0 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -9864,8 +9864,8 @@ class Expression(object): """ db = self.db if isinstance(value, (list, tuple)): - subqueries = [self.contains(v, case_sensitive=case_sensitive) - for v in value if v] + subqueries = [self.contains(str(v), case_sensitive=case_sensitive) + for v in value if str(v)] if not subqueries: return self.contains('') else: