From 23e113c02fa5cd01bea2ead75cbc72ef405301d7 Mon Sep 17 00:00:00 2001 From: wuaho Date: Wed, 14 Jul 2021 19:11:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9bool=20=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/verification.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/verification.py b/common/verification.py index 77394e7..f8861c6 100644 --- a/common/verification.py +++ b/common/verification.py @@ -28,6 +28,9 @@ def restore_field(data: dict) -> tuple: elif isinstance(v, bool): sign_kv[key] = str(v).lower() res[key] = int(v) + elif v is None: + sign_kv[key] = 'null' + res[key] = '' else: sign_kv[key] = v return res, sign_kv