File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
mesh-database-client/mesh_database_client Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ def _member_id_to_nn(self, member_id):
30
30
# If there are multiple active installs for this member, arbitrary select the first one
31
31
install = install_query_json ["results" ][0 ]
32
32
33
- if not install ["network_number" ]:
33
+ if not install ["node" ][ " network_number" ]:
34
34
return None
35
35
36
- return install ["network_number" ]
36
+ return install ["node" ][ " network_number" ]
37
37
38
38
def name_to_nn (self , name ):
39
39
member_query_response = self .requests_sesssion .get (
@@ -90,9 +90,9 @@ def get_nn(self, input_number):
90
90
install_num_query_response .raise_for_status ()
91
91
install_num_query_json = install_num_query_response .json ()
92
92
93
- if install_num_query_json ["status" ] == "Active" :
93
+ if install_num_query_json ["status" ] == "Active" and install_num_query_json [ "node" ] :
94
94
# We found an install for this as an install number, translate that to an NN
95
- return install_num_query_json ["network_number" ]
95
+ return install_num_query_json ["node" ][ " network_number" ]
96
96
97
97
return None
98
98
except requests .exceptions .RequestException :
You can’t perform that action at this time.
0 commit comments