From 32bce21d9a09b060ce6638d51f508cf9c081d5f3 Mon Sep 17 00:00:00 2001 From: _ Kilemensi Date: Wed, 20 Jan 2021 16:14:25 +0300 Subject: [PATCH] Upload data from public sensors only --- sensorsafrica/management/commands/upload_to_ckan.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sensorsafrica/management/commands/upload_to_ckan.py b/sensorsafrica/management/commands/upload_to_ckan.py index de3ccec..3b0a95c 100644 --- a/sensorsafrica/management/commands/upload_to_ckan.py +++ b/sensorsafrica/management/commands/upload_to_ckan.py @@ -77,6 +77,7 @@ def handle(self, *args, **options): while date <= end_date: qs = ( SensorData.objects.filter( + sensor__public=True, location__city=city, timestamp__month=date.month, timestamp__year=date.year,