Skip to content

Commit

Permalink
Use list comprehension
Browse files Browse the repository at this point in the history
See also: #37
  • Loading branch information
BECATRUE committed Nov 29, 2024
1 parent 70210f8 commit 0c3ed7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wlm_server/channel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def handle_info(request):
user = request.user
channels = Channel.objects.filter(teams=user.team)
data = ChannelInfoSerializer(channels, many=True, context={'user': user}).data
return Response(dict_to_camel(data))
return Response([dict_to_camel(info) for info in data])

0 comments on commit 0c3ed7c

Please sign in to comment.