refactor: Replace render imports

This commit is contained in:
Suraj Shetty 2021-05-25 10:28:32 +05:30
parent 5c6d3e043c
commit 2f8a742aa8
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
from __future__ import unicode_literals
import frappe
import frappe.website.render
from frappe.website.utils import clear_cache
def execute():
for item_code in frappe.db.sql_list("""select distinct variant_of from `tabItem`
@ -12,4 +12,4 @@ def execute():
item.make_route()
item.db_set("route", item.route, update_modified=False)
frappe.website.render.clear_cache()
clear_cache()

View File

@ -8,7 +8,7 @@ from frappe import _
from frappe.utils import nowdate, cint, cstr
from frappe.utils.nestedset import NestedSet
from frappe.website.website_generator import WebsiteGenerator
from frappe.website.render import clear_cache
from frappe.website.utils import clear_cache
from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow
from erpnext.shopping_cart.product_info import set_product_info_for_website
from erpnext.utilities.product import get_qty_in_stock

View File

@ -18,7 +18,7 @@ from frappe.utils.html_utils import clean_html
from frappe.website.doctype.website_slideshow.website_slideshow import \
get_slideshow
from frappe.website.render import clear_cache
from frappe.website.utils import clear_cache
from frappe.website.website_generator import WebsiteGenerator
from six import iteritems