fix linter

This commit is contained in:
simon 2022-11-18 09:46:33 +07:00
parent 2818bd5d52
commit 31c967cc11
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -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):