|
@ -393,7 +393,7 @@ def change_file_dir(): |
|
|
base_path = os.path.expanduser( |
|
|
base_path = os.path.expanduser( |
|
|
"~") + "/frappe-bench/sites/" + site_name + "/public" |
|
|
"~") + "/frappe-bench/sites/" + site_name + "/public" |
|
|
file_data = frappe.db.sql(''' |
|
|
file_data = frappe.db.sql(''' |
|
|
select name,file from tabProcedure_Details where content_type = 'File' and file = '/files/Driver Seat Back Rest Foam.jpg' ;''', as_dict=1) |
|
|
select name,file from tabProcedure_Details where content_type = 'File' ;''', as_dict=1) |
|
|
changed_file_list = [] |
|
|
changed_file_list = [] |
|
|
for d in file_data: |
|
|
for d in file_data: |
|
|
frappe.log_error("File data :", str(d)) |
|
|
frappe.log_error("File data :", str(d)) |
|
|