altered network creation

This commit is contained in:
seangreaves
2023-01-07 18:30:08 +00:00
parent 3b04817189
commit 85e53ccfa2

View File

@@ -125,15 +125,16 @@
"generate_network_button.on_click(lambda bt: generate_network()) \n",
"\n",
"def init_network():\n",
" api.basic_auth.username = API_input.value\n",
" init_button.disabled=True\n",
" company_text.disabled=True\n",
"# api.basic_auth.username = API_input.value\n",
" response = api.get_company(str(company_text.value))\n",
" if response:\n",
" network.company_id = str(company_text.value)\n",
"# network.company_id = str(company_text.value)\n",
" network = base.Network(company=str(company_text.value))\n",
" init_status.value = u'\\u2705: Initialisation successful for ' + str(response['company_name']) \n",
" depth_selector.disabled = False\n",
" generate_network_button.disabled = False\n",
" init_button.disabled=True\n",
" company_text.disabled=True\n",
" else:\n",
" init_button.disabled=False\n",
" company_text.disabled=False\n",