summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-05-03 17:37:04 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-05-03 17:37:04 +0700
commitafad42a0a2c19339158499a259bef5bb7062f387 (patch)
tree8fa2fbb4823ad711157bee1c57ed466ce4bdbcc9
parent1b31655209df1642d5c6c5e1106c14debddaddfc (diff)
bug fix update rating to solr
-rw-r--r--indoteknik_custom/models/apache_solr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py
index 04f83532..ce6a4180 100644
--- a/indoteknik_custom/models/apache_solr.py
+++ b/indoteknik_custom/models/apache_solr.py
@@ -30,8 +30,8 @@ class ApacheSolr(models.Model):
documents=[]
for template in templates:
document = {
- 'id': template.id,
- 'product_rating_f': {'set':template.virtual_rating},
+ "id": template.id,
+ "product_rating_f": {"set":template.virtual_rating}
}
documents.append(document)
template.last_calculate_rating = current_time