use pathlib in more places, thereby fixing some bugs

This commit is contained in:
Laura Klünder 2023-11-11 12:06:46 +01:00
parent f5c33724dc
commit 2ad9f4a099
14 changed files with 24 additions and 36 deletions

View file

@ -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