diff --git a/bricktracker/views/error.py b/bricktracker/views/error.py index c9f47e6..c034ea8 100644 --- a/bricktracker/views/error.py +++ b/bricktracker/views/error.py @@ -30,6 +30,7 @@ def error( error: Exception | None, file: str, /, + *, json: bool = False, post_redirect: str | None = None, **kwargs, @@ -121,6 +122,7 @@ def error( def error_404( error: Exception, /, + *, json: bool = False, post_redirect: str | None = None, **kwargs, diff --git a/bricktracker/views/exceptions.py b/bricktracker/views/exceptions.py index 6d31266..562606a 100644 --- a/bricktracker/views/exceptions.py +++ b/bricktracker/views/exceptions.py @@ -25,6 +25,7 @@ ViewCallable = Callable[P, ViewReturn] def exception_handler( file: str, /, + *, json: bool = False, post_redirect: str | None = None ) -> Callable[[ViewCallable], ViewCallable]: diff --git a/bricktracker/views/upload.py b/bricktracker/views/upload.py index ff9b3ff..9f6ff67 100644 --- a/bricktracker/views/upload.py +++ b/bricktracker/views/upload.py @@ -12,6 +12,7 @@ def upload_helper( name: str, endpoint: str, /, + *, extensions: list[str] = [], ) -> FileStorage | Response: # Bogus submit