diff options
author | neodarz <neodarz@neodarz.net> | 2019-07-08 15:46:39 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-07-08 15:50:24 +0200 |
commit | bcde164af6aeccc13ee77c0b5e505399994095d3 (patch) | |
tree | bb4bc6b2150d06f1cca935a8af637f95094dad3e /umosapi/utils.py | |
download | umosapi-bcde164af6aeccc13ee77c0b5e505399994095d3.tar.xz umosapi-bcde164af6aeccc13ee77c0b5e505399994095d3.zip |
Initial commit
All code are mainly copied then adjusted from
https://git.neodarz.net/pro/liberationCenter.git/
Diffstat (limited to 'umosapi/utils.py')
-rw-r--r-- | umosapi/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/umosapi/utils.py b/umosapi/utils.py new file mode 100644 index 0000000..bd5f655 --- /dev/null +++ b/umosapi/utils.py @@ -0,0 +1,9 @@ +from bson.json_util import dumps +from json import loads + + +def sanitize(uobjects): + """ + Simply transform a list of uobject into a list of uobject stringised + """ + return loads(dumps(uobjects)) |