use pathlib in more places, thereby fixing some bugs
This commit is contained in:
parent
f5c33724dc
commit
2ad9f4a099
14 changed files with 24 additions and 36 deletions
|
@ -104,7 +104,7 @@ class MapUpdate(models.Model):
|
|||
yield cls.objects.select_for_update().get(pk=earliest.pk)
|
||||
|
||||
def _changed_geometries_filename(self):
|
||||
return os.path.join(settings.CACHE_ROOT, 'changed_geometries', 'update_%d.pickle' % self.pk)
|
||||
return settings.CACHE_ROOT / 'changed_geometries' / ('update_%d.pickle' % self.pk)
|
||||
|
||||
class ProcessUpdatesAlreadyRunning(Exception):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue