1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-10-22 19:28:23 +00:00

Better NIF compliance

This commit is contained in:
J. Fernando Sánchez
2014-12-01 09:38:23 +01:00
parent 4351f76b60
commit 10f4782ad7
6 changed files with 20 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ def get_params(req, params=BASIC_PARAMS):
if alias in indict:
outdict[param] = indict[alias]
if param not in outdict:
if options.get("required", False):
if options.get("required", False) and "default" not in options:
wrong_params[param] = params[param]
else:
if "default" in options: