summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-21 08:15:45 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-21 08:15:45 +0700
commitabccff65f5eb91eafe08025ebc86d5e220243854 (patch)
tree39fce3baa3b9a29fef711401194a1307aa07a09d
parentfeca0602e8220c1d798728e4478b5372eb9a3e81 (diff)
<MIqdad> fix logic sync solr
-rw-r--r--indoteknik_custom/models/keywords.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/keywords.py b/indoteknik_custom/models/keywords.py
index 9c8e2cfd..487e58e5 100644
--- a/indoteknik_custom/models/keywords.py
+++ b/indoteknik_custom/models/keywords.py
@@ -133,7 +133,7 @@ class Keywords(models.Model):
def _onchange_solr_flag(self):
"""Set solr_flag=2 when tracked fields change to trigger queue sync"""
for record in self:
- if not record.skip and len(record.product_ids) > 0:
+ if len(record.product_ids) > 0:
record.solr_flag = 2
def solr_flag_to_queue(self, limit=500):
@@ -235,7 +235,7 @@ class Keywords(models.Model):
tracked_fields = ['keywords', 'category_id', 'product_ids']
neded_sync = any(field in vals for field in tracked_fields)
- if neded_sync and self.skip == False:
+ if neded_sync:
for record in self:
# Only flag for sync if there are products
if len(record.product_ids) > 0: