fix: arguments for remove_document_from_index

This commit is contained in:
Shivam Mishra 2020-07-31 13:35:36 +05:30
parent 6da04fcb97
commit 788711bdad

View file

@ -96,7 +96,7 @@ class WebsiteGenerator(Document):
self.send_indexing_request('URL_DELETED')
# On deleting the doc, remove the page from the web_routes index
if self.allow_website_search_indexing():
remove_document_from_index("web_routes", self.route)
remove_document_from_index(self.route)
def is_website_published(self):
"""Return true if published in website"""