fix: Set hub_url in Hub Settings

- add patch to set the value
This commit is contained in:
Faris Ansari
2018-08-29 18:24:49 +05:30
parent e4c7729089
commit 114d595de9
6 changed files with 46 additions and 12 deletions

View File

@@ -180,9 +180,9 @@ def get_hub_connection():
# read-only connection
if read_only:
hub_connection = FrappeClient(frappe.conf.hub_url)
hub_url = frappe.db.get_single_value('Hub Settings', 'hub_url')
hub_connection = FrappeClient(hub_url)
return hub_connection
def get_field_mappings():
return []