style: formatting changes

This commit is contained in:
Mangesh-Khairnar
2019-12-19 20:11:37 +05:30
parent ba48546678
commit c1a1e7d503
3 changed files with 101 additions and 98 deletions

View File

@@ -116,10 +116,10 @@ def get_valid_items(search_value=''):
return valid_items
@frappe.whitelist()
def update_item(ref_doctype, ref_doc, data):
def update_item(ref_doc, data):
data = json.loads(data)
data.update(dict(doctype=ref_doctype, name=ref_doc))
data.update(dict(doctype='Hub Item', name=ref_doc))
try:
connection = get_hub_connection()
connection.update(data)