Explorar el Código

Sort keys of properties JSON file

Unrud hace 8 años
padre
commit
33ad60503f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      radicale/storage.py

+ 1 - 1
radicale/storage.py

@@ -1328,7 +1328,7 @@ class Collection(BaseCollection):
 
     def set_meta_all(self, props):
         with self._atomic_write(self._props_path, "w") as f:
-            json.dump(props, f)
+            json.dump(props, f, sort_keys=True)
 
     @property
     def last_modified(self):