From ca0bc5c3a6ab46cce08fa6c3ad69ec341d22aec2 Mon Sep 17 00:00:00 2001 From: Karim Kawambwa <4308339+karimkawambwa@users.noreply.github.com> Date: Mon, 15 Apr 2019 08:14:48 +0300 Subject: [PATCH] fix sensorsafrica.tasks.archive_data (#32) --- sensorsafrica/management/commands/upload_to_ckan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensorsafrica/management/commands/upload_to_ckan.py b/sensorsafrica/management/commands/upload_to_ckan.py index 375f5ca..249803b 100644 --- a/sensorsafrica/management/commands/upload_to_ckan.py +++ b/sensorsafrica/management/commands/upload_to_ckan.py @@ -95,7 +95,7 @@ def handle(self, *args, **options): month=calendar.month_name[date.month], year=date.year ) - filepath = "./temp/%s.csv" % resource_name.lower().replace(" ", "_") + filepath = "/tmp/%s.csv" % resource_name.lower().replace(" ", "_") self._write_file(filepath=filepath, qs=qs) self._create_or_update_resource(