Skip to content

Commit

Permalink
fix: fix error TypeError 'bool' object is not callable
Browse files Browse the repository at this point in the history
  • Loading branch information
thepsalmist committed Oct 3, 2024
1 parent eb5d88c commit 95c3d69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sensorsafrica/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class NodeView(
filter_class = NodeFilter

def get_queryset(self):
if self.request.user.is_authenticated():
if self.request.user.is_authenticated:
if self.request.user.groups.filter(name="show_me_everything").exists():
return Node.objects.all()

Expand Down Expand Up @@ -92,7 +92,7 @@ class PostSensorDataView(mixins.CreateModelMixin,
permission_classes = tuple()
serializer_class = LastNotifySensorDataSerializer
queryset = SensorData.objects.all()


class VerboseSensorDataView(SensorDataView):
filter_class = SensorFilter
Expand Down
2 changes: 1 addition & 1 deletion sensorsafrica/api/v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class SensorDataView(
serializer_class = SensorDataSerializer

def get_queryset(self):
if self.request.user.is_authenticated():
if self.request.user.is_authenticated:
if self.request.user.groups.filter(name="show_me_everything").exists():
return SensorData.objects.all()

Expand Down

0 comments on commit 95c3d69

Please sign in to comment.