Fixed the UrlBuilder utility to allow dummy parameter value that is None in the Mia core application.

This commit is contained in:
依瑪貓 2020-07-24 07:25:30 +08:00
parent 10cbe2a70f
commit 5a2a3a6c56

View File

@ -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):