Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hub Web-socket Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
We are moving to Forgejo!
You are on a read-only GitLab instance.
Show more breadcrumbs
Digipex
Hub Web-socket Docker
Commits
c99ac4a2
Unverified
Commit
c99ac4a2
authored
3 years ago
by
Dashie
Browse files
Options
Downloads
Patches
Plain Diff
py3: xrange is now range
parent
e8c2fb54
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/trackdirect/parser/policies/PacketRelatedMapSectorsPolicy.py
+2
-2
2 additions, 2 deletions
...ckdirect/parser/policies/PacketRelatedMapSectorsPolicy.py
with
2 additions
and
2 deletions
server/trackdirect/parser/policies/PacketRelatedMapSectorsPolicy.py
+
2
−
2
View file @
c99ac4a2
...
...
@@ -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
x
range
(
minLat
,
maxLat
,
20000
):
for
lng
in
x
range
(
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment