Skip to content

Commit f23d78f

Browse files
committed
wip
1 parent 639d4b9 commit f23d78f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

coderbot/api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
BUTTON_PIN = 16
3232

3333
settings = Config.read().get("settings")
34+
network_settings = Config.read().get("network")
35+
cloud_settings = Config.read().get("cloud")
36+
3437
bot = CoderBot.get_instance(settings=settings, motor_trim_factor=float(settings.get('move_motor_trim', 1.0)),
3538
motor_max_power=int(settings.get('motor_max_power', 100)),
3639
motor_min_power=int(settings.get('motor_min_power', 0)),
@@ -426,10 +429,10 @@ def cloudRegistrationDelete():
426429
return 200
427430

428431
def cloudRegistrationStatus():
429-
registration = settings.get('cloud_registration', {})
432+
registration = cloud_settings.get('registration', {})
430433
return {
431434
"registered": CloudManager.get_instance().registration_status(),
432-
"name": registration.get('name', {}),
435+
"name": registration.get('name', ""),
433436
"description": registration.get('description', ""),
434437
"org_id": registration.get('org_id', ""),
435438
"org_name": registration.get('org_name', ""),

0 commit comments

Comments
 (0)