fix: Failing search util import and patch

- Use simple function import instead of global variable to check if field is valid to index
- Commit after every 20 items in patch to  create web items from items
This commit is contained in:
marination
2021-09-02 14:30:37 +05:30
parent c5efb6dc35
commit 10a450cb2c
3 changed files with 16 additions and 12 deletions

View File

@@ -19,9 +19,6 @@ def get_indexable_web_fields():
return [df.fieldname for df in valid_fields]
ALLOWED_INDEXABLE_FIELDS_SET = get_indexable_web_fields()
def is_search_module_loaded():
cache = frappe.cache()
out = cache.execute_command('MODULE LIST')