diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-05-03 17:37:04 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-05-03 17:37:04 +0700 |
| commit | afad42a0a2c19339158499a259bef5bb7062f387 (patch) | |
| tree | 8fa2fbb4823ad711157bee1c57ed466ce4bdbcc9 | |
| parent | 1b31655209df1642d5c6c5e1106c14debddaddfc (diff) | |
bug fix update rating to solr
| -rw-r--r-- | indoteknik_custom/models/apache_solr.py | 4 |
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 |
