|
|
@ -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() |