Browse Source

FIle ext final push

master
venkataakhil 2 years ago
parent
commit
2fab47a15b
  1. 2
      smart_service/apis/master_api.py

2
smart_service/apis/master_api.py

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

Loading…
Cancel
Save