File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ cdef class IndexEngine:
89
89
self .monotonic_check = 0
90
90
91
91
self .unique = 0
92
+ self .unique_check = 0
92
93
self .monotonic_inc = 0
93
94
self .monotonic_dec = 0
94
95
@@ -232,14 +233,10 @@ cdef class IndexEngine:
232
233
values = self ._get_index_values()
233
234
self .monotonic_inc, self .monotonic_dec, unique = \
234
235
self ._call_monotonic(values)
235
-
236
- if unique is not None :
237
- self .unique = unique
238
- self .unique_check = 1
239
-
240
236
except TypeError :
241
237
self .monotonic_inc = 0
242
238
self .monotonic_dec = 0
239
+
243
240
self .monotonic_check = 1
244
241
245
242
cdef _get_index_values(self ):
@@ -269,8 +266,7 @@ cdef class IndexEngine:
269
266
270
267
if len (self .mapping) == len (values):
271
268
self .unique = 1
272
- self .unique_check = 1
273
-
269
+ self .unique_check = 1
274
270
self .initialized = 1
275
271
276
272
def clear_mapping (self ):
You can’t perform that action at this time.
0 commit comments