This introduces an uglt regression.
This commit is contained in:
parent
ce7d092be4
commit
bd2daf921a
5 changed files with 136 additions and 128 deletions
|
|
@ -7,7 +7,7 @@ from hashlib import md5
|
|||
from urllib.parse import urlencode
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
from crudkit.core.service import _is_truthy
|
||||
from crudkit.core.params import is_truthy
|
||||
|
||||
MAX_JSON = 1_000_000
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ def _json_error(e: Exception, status: int = 400):
|
|||
return jsonify({"status": "error", "error": msg}), status
|
||||
|
||||
def _bool_param(d: dict[str, str], key: str, default: bool) -> bool:
|
||||
return _is_truthy(d.get(key, "1" if default else "0"))
|
||||
return is_truthy(d.get(key, "1" if default else "0"))
|
||||
|
||||
def generate_crud_blueprint(model, service, *, base_prefix: str | None = None, rest: bool = True, rpc: bool = True):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue