From afad42a0a2c19339158499a259bef5bb7062f387 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 3 May 2023 17:37:04 +0700 Subject: bug fix update rating to solr --- indoteknik_custom/models/apache_solr.py | 4 ++-- 1 file 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 -- cgit v1.2.3