Browse Source

attachment validation update

master
Ubuntu 3 years ago
parent
commit
5d8740eb9e
  1. 4
      smart_service/apis/addon_api.py

4
smart_service/apis/addon_api.py

@ -114,8 +114,8 @@ def feedback(args, request):
.format(current_db_name,frappe.db.get_value('App Users', {'user_id': request['UserID']}, ['name'])),as_dict = True)
for i in api:
if i['attachments'] != 0:
i['attachment'] = frappe.db.get_list('File',fields=['file_name','file_url','attached_to_name','file_size'],filters={'attached_to_name':i['name']})
# if i['attachments'] != 0:
i['attachment'] = frappe.db.get_list('File',fields=['file_name','file_url','attached_to_name','file_size'],filters={'attached_to_name':i['name']})
if i['status'] == 'Active':
i['status'] = True
else:

Loading…
Cancel
Save