diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-02-16 13:57:28 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-02-16 13:57:28 +0700 |
| commit | 895a2e9ae261a6e11ae5673f0694165919edc6e7 (patch) | |
| tree | a612cf874f24aea0c71ffe74001f4f93993e8ada /indoteknik_api/controllers/api_v1 | |
| parent | 57b12c36df829ab358a68a5356c3549cf9714900 (diff) | |
json dump wati
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/wati.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/wati.py b/indoteknik_api/controllers/api_v1/wati.py index 009ea244..01b32653 100644 --- a/indoteknik_api/controllers/api_v1/wati.py +++ b/indoteknik_api/controllers/api_v1/wati.py @@ -10,9 +10,10 @@ class Wati(controller.Controller): @http.route(prefix + 'wati/notification', auth='none', type='json', csrf=False, cors='*', methods=['POST', 'OPTIONS']) def notification(self, **kw): json_raw = json.loads(request.httprequest.data) + json_dump = json.dumps(json_raw, indent=4, sort_keys=True) request.env['wati.notification'].create([{ - 'json_raw': json_raw + 'json_raw': json_dump }]) return |
