Browse Source

Change file path from assets to files path

master
venkataakhil 1 year ago
parent
commit
30ac12127d
  1. 10
      smart_service/apis/master_api.py

10
smart_service/apis/master_api.py

@ -369,6 +369,16 @@ def append_size_file():
frappe.db.commit()
except:
pass
return data
except Exception as e:
frappe.log_error("FIle size ", str(e))
return e
def change_file_dir():
pass
def asset_to_files_path():
frappe.db.sql('''
update tabProcedure_Details set file =concat('/files/',SUBSTRING_INDEX(file,'/',-1)) where content_type = 'File' and file like '%Asset/%';
''')
frappe.db.commit()
Loading…
Cancel
Save