Browse Source

addon api updated

master
Ubuntu 3 years ago
parent
commit
6bc488f75a
  1. 2
      smart_service/apis/addon_api.py

2
smart_service/apis/addon_api.py

@ -110,7 +110,7 @@ def feedback(args, request):
if args == 'get_user_feedback':
try:
request = json.loads(request)
api = frappe.db.sql('''SELECT name,feedback_type,status,concat(DATE(date),"T",time(date)) as date,user_name,attachments,description FROM {0}.`tabUser Feedback` where user_name = '{1}';'''
api = frappe.db.sql('''SELECT name,feedback_type,subject,status,concat(DATE(date),"T",time(date)) as date,user_name,attachments,description FROM {0}.`tabUser Feedback` where user_name = '{1}';'''
.format(current_db_name,frappe.db.get_value('App Users', {'user_id': request['UserID']}, ['name'])),as_dict = True)
for i in api:

Loading…
Cancel
Save