From 87c58a5c9bba3a0d28f95a40c2020c5a56cea60b Mon Sep 17 00:00:00 2001 From: Inex Code Date: Thu, 28 Dec 2023 21:26:32 +0300 Subject: [PATCH] fix: service location on new userdata --- selfprivacy_api/services/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/services/service.py b/selfprivacy_api/services/service.py index b66bd19..86082aa 100644 --- a/selfprivacy_api/services/service.py +++ b/selfprivacy_api/services/service.py @@ -209,7 +209,7 @@ class Service(ABC): return root_device with utils.ReadUserData() as userdata: if userdata.get("useBinds", False): - return userdata.get(cls.get_id(), {}).get( + return userdata.get("modules", {}).get(cls.get_id(), {}).get( "location", root_device, )