py3: xrange is now range

This commit is contained in:
Dashie 2022-08-09 11:56:21 +02:00
parent e8c2fb5428
commit c99ac4a210
No known key found for this signature in database
GPG Key ID: C2D57B325840B755
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ class PacketRelatedMapSectorsPolicy():
# lat interval: 0 - 18000000
# lng interval: 0 - 00003600
# Maybe we can do this smarter? Currently we are adding many map-sectors that is not relevant
for lat in xrange(minLat, maxLat, 20000):
for lng in xrange(minLng, maxLng, 5):
for lat in range(minLat, maxLat, 20000):
for lng in range(minLng, maxLng, 5):
mapSectorAreaCode = lat+lng
if (mapSectorAreaCode != prevPacketAreaCode and mapSectorAreaCode != newPacketAreaCode):
relatedMapSectors.append(mapSectorAreaCode)