remove race condition where c3nav tried to load a wrong router

This commit is contained in:
Laura Klünder 2018-12-17 18:07:40 +01:00
parent 20402b364d
commit e2698e7109

View file

@ -176,7 +176,7 @@ class MapUpdate(models.Model):
from c3nav.routing.locator import Locator
Locator.rebuild(new_updates[-1].to_tuple)
for new_update in new_updates:
for new_update in reversed(new_updates):
new_update.processed = True
new_update.save()