From 4d6598c645980ed033a8b6dffadc3d14b6037411 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 22 Sep 2012 11:19:14 -0500 Subject: [PATCH] fixed typo in validators --- VERSION | 2 +- gluon/validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 039e6b2b..a6b55e7f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-22 10:11:13) stable +Version 2.0.9 (2012-09-22 11:19:10) stable diff --git a/gluon/validators.py b/gluon/validators.py index a105ff56..dbf59fc5 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -512,7 +512,7 @@ class IS_IN_DB(Validator): def count(values, s=self.dbset, f=field): return s(f.belongs(map(int,values))).count() if isinstance(self.dbset.db._adapter, GoogleDatastoreAdapter): - range_ids = range(0,len(ids),30) + range_ids = range(0,len(values),30) total = sum(count(values[i:i+30]) for i in range_ids) if total == len(values): return (values, None)