From 5a2a3a6c56699448173e49beb31ae3188b240506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 24 Jul 2020 07:25:30 +0800 Subject: [PATCH] Fixed the UrlBuilder utility to allow dummy parameter value that is None in the Mia core application. --- mia_core/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mia_core/utils.py b/mia_core/utils.py index 08b5145..3551535 100644 --- a/mia_core/utils.py +++ b/mia_core/utils.py @@ -175,7 +175,8 @@ class UrlBuilder: UrlBuilder: The URL builder itself, with the parameter modified. """ - self.params.append(self.Param(name, value)) + if value is not None: + self.params.append(self.Param(name, value)) return self def del_param(self, name):