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 <arksine.code@gmail.com>
This commit is contained in:
parent
888fb58c4f
commit
f7f487ac18
|
@ -597,7 +597,7 @@ class MoonrakerDatabase:
|
||||||
elif namespace not in self.protected_namespaces:
|
elif namespace not in self.protected_namespaces:
|
||||||
self.protected_namespaces.add(namespace)
|
self.protected_namespaces.add(namespace)
|
||||||
self.insert_item("moonraker", "database.protected_namespaces",
|
self.insert_item("moonraker", "database.protected_namespaces",
|
||||||
list(self.protected_namespaces))
|
sorted(self.protected_namespaces))
|
||||||
|
|
||||||
def wrap_namespace(self,
|
def wrap_namespace(self,
|
||||||
namespace: str,
|
namespace: str,
|
||||||
|
|
Loading…
Reference in New Issue