Kaydet (Commit) 63ff4177 authored tarafından Claude Paroz's avatar Claude Paroz

Fixed a tuple/int comparison in spatialite backend

On Python 3, comparing tuple with int raises a TypeError.
üst c6ea678c
......@@ -21,7 +21,7 @@ class SpatiaLiteOperations(DatabaseOperations, BaseSpatialOperations):
@property
def valid_aggregates(self):
if self.spatial_version >= 3:
if self.spatial_version >= (3, 0, 0):
return {'Collect', 'Extent', 'Union'}
else:
return {'Union'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment