From 31c967cc11ad974a97d8323868993489a6987f63 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 18 Nov 2022 09:46:33 +0700 Subject: [PATCH] fix linter --- tubearchivist/home/src/index/comments.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tubearchivist/home/src/index/comments.py b/tubearchivist/home/src/index/comments.py index b7694cf6..b92e609b 100644 --- a/tubearchivist/home/src/index/comments.py +++ b/tubearchivist/home/src/index/comments.py @@ -112,11 +112,7 @@ class Comments: _, _ = ElasticWrap(self.es_path).put(self.json_data) vid_path = f"ta_video/_update/{self.youtube_id}" - data = { - "doc": { - "comment_count": len(self.comments_format) - } - } + data = {"doc": {"comment_count": len(self.comments_format)}} _, _ = ElasticWrap(vid_path).post(data=data) def delete_comments(self):