From c06f6c68b450ed0cdbbfb08853137ce95bf38f3a Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 1 Dec 2022 18:13:04 +0700 Subject: [PATCH] fix empty comment reindex --- tubearchivist/home/src/index/comments.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tubearchivist/home/src/index/comments.py b/tubearchivist/home/src/index/comments.py index 8f2439c2..944a1d91 100644 --- a/tubearchivist/home/src/index/comments.py +++ b/tubearchivist/home/src/index/comments.py @@ -171,6 +171,9 @@ class Comments: self.build_json() es_comments = self.get_es_comments() + if not self.comments_format: + return + if not self.comments_format and es_comments["comment_comments"]: # don't overwrite comments in es return