Browse Source

File ext validation

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

2
smart_service/apis/master_api.py

@ -390,7 +390,7 @@ def asset_to_files_path():
def change_file_dir():
data = frappe.db.sql('''
select name,file from tabProcedure_Details where content_type = 'File' where file = '/files/Driver Seat Back Rest Foam.jpg' ;''', as_dict=1)
select name,file from tabProcedure_Details where content_type = 'File' and file = '/files/Driver Seat Back Rest Foam.jpg' ;''', as_dict=1)
for d in data:
frappe.log_error("File data :", str(file_name))

Loading…
Cancel
Save