diff sat/core/sat_main.py @ 3102:7574f795bd1e

core, bridge: encryptionPluginsGet now returns a serialised list + added "directed" in metadata
author Goffi <goffi@goffi.org>
date Mon, 30 Dec 2019 20:44:04 +0100
parents d1464548055a
children 3fcc99b2d6b7
line wrap: on
line diff
--- a/sat/core/sat_main.py	Mon Dec 30 20:44:02 2019 +0100
+++ b/sat/core/sat_main.py	Mon Dec 30 20:44:04 2019 +0100
@@ -734,9 +734,10 @@
             ret.append({
                 "name": p.name,
                 "namespace": p.namespace,
-                "priority": str(p.priority),
+                "priority": p.priority,
+                "directed": p.directed,
                 })
-        return ret
+        return data_format.serialise(ret)
 
     def _encryptionTrustUIGet(self, to_jid_s, namespace, profile_key):
         client = self.getClient(profile_key)