summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-05-09 15:18:31 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-05-09 15:18:31 +0700
commitf2a939164b06672a74380f7095336683175b52c2 (patch)
tree55f231377625de7578f6f897570599f17e173005
parent9e1882ea71a2861fc88884f7abdea99183123b8f (diff)
bug fix
-rw-r--r--indoteknik_custom/models/apache_solr.py2
1 files changed, 1 insertions, 1 deletions
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()