From f2a939164b06672a74380f7095336683175b52c2 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 9 May 2023 15:18:31 +0700 Subject: bug fix --- indoteknik_custom/models/apache_solr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py index 31934835..7f8ed97a 100644 --- a/indoteknik_custom/models/apache_solr.py +++ b/indoteknik_custom/models/apache_solr.py @@ -63,8 +63,8 @@ class ApacheSolr(models.Model): documents.append(document) template.last_calculate_rating = current_time _logger.info("[SYNC_PRODUCT_RATING_TO_SOLR] Success Set to solr product %s" % template.id) + _solr.add(document) _logger.info(documents) - _solr.add(documents) def _sync_product_to_solr(self, limit=500): start_time = time.time() -- cgit v1.2.3