From a0bb334f05e6ceb0462eb7915d135c7e9b1c7045 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Mon, 17 Jun 2024 14:04:51 +0200 Subject: [PATCH] fix: typo --- src/project/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project/views.py b/src/project/views.py index e1f9f81..f448444 100644 --- a/src/project/views.py +++ b/src/project/views.py @@ -113,6 +113,6 @@ class ArchiveFilerPublic(View): with zipfile.ZipFile('filer_public.zip', 'w', zipfile.ZIP_DEFLATED) as zipf: for root, dirs, files in os.walk('/app/data/media/filer_public/'): for file in files: - ziph.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..'))) + zipf.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..'))) return HttpResponse('success')