Added boolean True as valid force value

This commit is contained in:
Adolfo Gómez García 2021-09-29 00:13:33 +02:00
parent 4c453d2b1f
commit afbc75bff0

View File

@ -138,7 +138,7 @@ class Tickets(Handler):
if 'username' not in self._params or 'groups' not in self._params:
raise RequestError('Invalid parameters')
force: bool = self._params.get('force', '0') in ('1', 'true', 'True')
force: bool = self._params.get('force', '0') in ('1', 'true', 'True', True)
userIp: typing.Optional[str] = self._params.get('userIp', None)