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

@ -33,7 +33,7 @@ class Command(BaseCommand):
for filename in os.listdir(settings.CACHE_ROOT):
if filename.startswith('history_base_'):
logger.info('Deleting %s...' % filename)
os.remove(os.path.join(settings.CACHE_ROOT, filename))
os.remove(settings.CACHE_ROOT / filename)
logger.info('Base history deleted.')
if not settings.HAS_CELERY and not options['no_process']: