Skip to content

Commit

Permalink
Merge branch 'dev' into dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheenhyderk committed Dec 12, 2023
2 parents 15b4f13 + bb6922b commit 6f5d7da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/dashboard/lc/dash_lc_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def get_previous_meetings(self, obj):
return previous_meetings


class LearningCircleDataSerializer(serializers.ModelSerializer):
class LearningCircleStatsSerializer(serializers.ModelSerializer):
interest_group = serializers.SerializerMethodField()
college = serializers.SerializerMethodField()
learning_circle = serializers.SerializerMethodField()
Expand Down
6 changes: 3 additions & 3 deletions api/dashboard/lc/dash_lc_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from utils.utils import send_template_mail, DateTimeUtils
from .dash_lc_serializer import LearningCircleSerializer, LearningCircleCreateSerializer, LearningCircleDetailsSerializer, \
LearningCircleUpdateSerializer, LearningCircleJoinSerializer, \
LearningCircleMainSerializer, LearningCircleNoteSerializer, LearningCircleDataSerializer, \
LearningCircleMainSerializer, LearningCircleNoteSerializer, LearningCircleStatsSerializer, \
LearningCircleMemberListSerializer, MeetRecordsCreateEditDeleteSerializer, IgTaskDetailsSerializer, \
ScheduleMeetingSerializer, ListAllMeetRecordsSerializer, AddMemberSerializer

Expand Down Expand Up @@ -90,7 +90,7 @@ def post(self, request):
).get_success_response()


class LearningCircleDataAPI(APIView):
class LearningCircleStatsAPI(APIView):
"""
API endpoint for retrieving basic data about all learning circles.
Expand All @@ -103,7 +103,7 @@ class LearningCircleDataAPI(APIView):
def get(self, request):
learning_circle = LearningCircle.objects.all()

serializer = LearningCircleDataSerializer(
serializer = LearningCircleStatsSerializer(
learning_circle,
many=False
)
Expand Down
2 changes: 1 addition & 1 deletion api/dashboard/lc/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

urlpatterns = [
path('user-list/', dash_lc_view.UserLearningCircleListApi.as_view(), name='main'), # list all lc's of user
path('stats/', dash_lc_view.LearningCircleStatsAPI.as_view(), name='data'),
path('<str:circle_id>/details/', dash_lc_view.LearningCircleDetailsApi.as_view(), name='lc-detailed'), # individual ls details
# dashboard search listing
path('<str:circle_id>/schedule-meet/', dash_lc_view.ScheduleMeetAPI.as_view(), name='schedule-meet'),
Expand All @@ -25,7 +26,6 @@
path('list/', dash_lc_view.LearningCircleMainApi.as_view(), name='list'), # public page listing
path('list-all/', dash_lc_view.TotalLearningCircleListApi.as_view(), name='list-all'), # dashboard search listing

# path('data/', dash_lc_view.LearningCircleDataAPI.as_view(), name='data'),
# path('list-members/<str:circle_id>/', dash_lc_view.LearningCircleListMembersApi.as_view(), name='list-members'),
# path('invite/', dash_lc_view.LearningCircleInviteLeadAPI.as_view()),
# path('meet-record/list-all/<str:circle_id>/', dash_lc_view.SingleReportDetailAPI.as_view(), name='list-all-meet-record'), # optim
Expand Down

0 comments on commit 6f5d7da

Please sign in to comment.