Browse Source

Delete file ext

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

10
smart_service/apis/master_api.py

@ -343,3 +343,13 @@ def change_file_ext():
except:
return False
return True
def delete_file_ext():
try:
frappe.db.sql('''
Delete from tabFile where substring(file_url,length(file_url)-2) REGEXP BINARY '[A-Z]';
''')
frappe.db.commit()
except:
return False
return True
Loading…
Cancel
Save