fixed typo in validators

This commit is contained in:
mdipierro
2012-09-22 11:19:14 -05:00
parent 56acb685e9
commit 4d6598c645
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-09-22 10:11:13) stable
Version 2.0.9 (2012-09-22 11:19:10) stable
+1 -1
View File
@@ -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)