fix(minor): revert force reloading of workspace

This commit is contained in:
Rushabh Mehta 2021-01-12 13:34:20 +05:30
parent 7fd6346bf8
commit f8ea6ff9c6

View file

@ -60,7 +60,7 @@ def import_file_by_path(path, force=False, data_import=False, pre_process=None,
if not force:
# check if timestamps match
db_modified = frappe.db.get_value(doc['doctype'], doc['name'], 'modified')
if db_modified and doc.get('modified')==get_datetime_str(db_modified) and doc['doctype'] != 'Workspace':
if db_modified and doc.get('modified')==get_datetime_str(db_modified):
return False
original_modified = doc.get("modified")