From 2871955b6d35df2af2efc4f4ee8f812f0bb0d92d Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 8 Nov 2024 14:22:36 +0700 Subject: [PATCH] fix linter --- backend/channel/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/channel/views.py b/backend/channel/views.py index 7bb2525b..c6fc2b70 100644 --- a/backend/channel/views.py +++ b/backend/channel/views.py @@ -90,7 +90,7 @@ class ChannelApiView(ApiBaseView): def post(self, request, channel_id): """modify channel overwrites""" data = request.data - if not isinstance(data, dict) or not "channel_overwrites" in data: + if not isinstance(data, dict) or "channel_overwrites" not in data: return Response({"error": "invalid payload"}, status=400) overwrites = data["channel_overwrites"]