fixed typo in validators
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user