merge RangeLocator into Locator and modernize code
This commit is contained in:
parent
ae65a68830
commit
34af60782c
14 changed files with 373 additions and 438 deletions
|
@ -185,10 +185,6 @@ class MapUpdate(models.Model):
|
|||
from c3nav.routing.locator import Locator
|
||||
locator = Locator.rebuild(new_updates[-1].to_tuple)
|
||||
|
||||
logger.info('Rebuilding range locator...')
|
||||
from c3nav.routing.rangelocator import RangeLocator
|
||||
range_locator = RangeLocator.rebuild(new_updates[-1].to_tuple, router)
|
||||
|
||||
for new_update in reversed(new_updates):
|
||||
new_update.processed = True
|
||||
new_update.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue