Revised the strip_form() utility to remove the empty input in the Mia core application.
This commit is contained in:
		| @@ -49,8 +49,10 @@ def strip_form(form): | ||||
|     Args: | ||||
|         form (dict[str]): The form. | ||||
|     """ | ||||
|     for key in form.keys(): | ||||
|     for key in list(form.keys()): | ||||
|         form[key] = form[key].strip() | ||||
|         if form[key] == "": | ||||
|             del form[key] | ||||
|  | ||||
|  | ||||
| class Language: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user