Skip to content

Commit 53eaca6

Browse files
committed
update formatting
1 parent 69f1295 commit 53eaca6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pynetbox/core/response.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,15 @@ def flatten_custom(custom_dict):
6161
ret = {}
6262

6363
for k, val in custom_dict.items():
64-
current_val = val
64+
current_val = val
6565

66-
if isinstance(val, dict):
67-
current_val = val.get('id', val)
66+
if isinstance(val, dict):
67+
current_val = val.get("id", val)
6868

69-
if isinstance(val, list):
70-
current_val = [
71-
v.get("id") if isinstance(v, dict) else v for v in val
72-
]
69+
if isinstance(val, list):
70+
current_val = [v.get("id") if isinstance(v, dict) else v for v in val]
7371

74-
ret[k] = current_val
72+
ret[k] = current_val
7573
return ret
7674

7775

0 commit comments

Comments
 (0)