Skip to content

Commit b7874aa

Browse files
committed
1 parent cc86869 commit b7874aa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/users/tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,4 @@ def test_with_content(self):
458458
self.assertEqual(response.data['sources_owned'], 1)
459459
self.assertEqual(response.data['collections_owned'], 1)
460460
self.assertGreaterEqual(response.data['concepts_created'], 1)
461-
self.assertGreaterEqual(response.data['mappings_created'], 1)
461+
self.assertGreaterEqual(response.data['mappings_created'], 1)

core/users/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ class UserContentSummaryView(APIView):
630630
permission_classes = (IsAuthenticated,)
631631
serializer_class = UserContentSummarySerializer
632632

633-
def get(self, request, user):
633+
def get(self, request, user): # pylint: disable=too-many-locals
634634
from django.db.models import F
635635
from core.collections.models import Collection, CollectionReference, Expansion
636636
from core.concepts.models import Concept
@@ -671,4 +671,4 @@ def get(self, request, user):
671671
'expansions_created': Expansion.objects.filter(created_by=profile).count(),
672672
}
673673
serializer = self.serializer_class(data)
674-
return Response(serializer.data)
674+
return Response(serializer.data)

0 commit comments

Comments
 (0)