Skip to content

Commit 0b35ee1

Browse files
authored
Adds filtering using sensor public status (#108)
1 parent 75c68f3 commit 0b35ee1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sensorsafrica/api/v2/filters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
class CustomSensorFilter(SensorFilter):
66
class Meta(SensorFilter.Meta):
77
fields = {"sensor": ["exact"],
8+
"sensor__public": ["exact"],
89
"location__country": ['exact'],
910
"location__city": ['exact'],
1011
"timestamp": ("gte", "lte"),

0 commit comments

Comments
 (0)