From f7f487ac18e83e602578dfd85922c2701c857182 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 20 Feb 2022 17:15:14 -0500 Subject: [PATCH] database: sort protected namespaces before storing them This makes the order in which they are reported consistent, as the namespaces are stored in a set. Signed-off-by: Eric Callahan --- moonraker/components/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/database.py b/moonraker/components/database.py index 05803c7..5de40a9 100644 --- a/moonraker/components/database.py +++ b/moonraker/components/database.py @@ -597,7 +597,7 @@ class MoonrakerDatabase: elif namespace not in self.protected_namespaces: self.protected_namespaces.add(namespace) self.insert_item("moonraker", "database.protected_namespaces", - list(self.protected_namespaces)) + sorted(self.protected_namespaces)) def wrap_namespace(self, namespace: str,