|
@ -194,7 +194,7 @@ def feedback(args=None, request=None): |
|
|
return api |
|
|
return api |
|
|
|
|
|
|
|
|
elif args == 'post_user_feedback': |
|
|
elif args == 'post_user_feedback': |
|
|
# try: |
|
|
try: |
|
|
request = json.loads(request) |
|
|
request = json.loads(request) |
|
|
usr_fdbk = frappe.new_doc('User Feedback') |
|
|
usr_fdbk = frappe.new_doc('User Feedback') |
|
|
usr_fdbk.subject = request['Subject'] |
|
|
usr_fdbk.subject = request['Subject'] |
|
@ -231,8 +231,8 @@ def feedback(args=None, request=None): |
|
|
ret.insert(ignore_permissions=True) |
|
|
ret.insert(ignore_permissions=True) |
|
|
file_response.append(ret) |
|
|
file_response.append(ret) |
|
|
api = {"isSuccessful": True, "name": usr_fdbk.name, "files": file_response} |
|
|
api = {"isSuccessful": True, "name": usr_fdbk.name, "files": file_response} |
|
|
# except Exception as e: |
|
|
except Exception as e: |
|
|
# api = {"status": 0, "error": "Failed to create Feedback"} |
|
|
api = {"status": 0, "error": "Failed to create Feedback"} |
|
|
else: |
|
|
else: |
|
|
api = {"status": 0, "error": "Check argument: args"} |
|
|
api = {"status": 0, "error": "Check argument: args"} |
|
|
else: |
|
|
else: |
|
|