diff options
| author | Frederick Muriuki Muriithi | 2025-12-19 12:53:20 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-12-19 12:53:20 -0600 |
| commit | 56ed0f57b816b1023a97b7205268deed0a45c77e (patch) | |
| tree | 29bad7b0b2ff78230d80b5c5ec76eb2822b8d84b /uploader/route_utils.py | |
| parent | d04b7cb89b3fbaa1689f8f6525a2740eda7c3be3 (diff) | |
| download | gn-uploader-56ed0f57b816b1023a97b7205268deed0a45c77e.tar.gz | |
Fix issues caught by type-checker.
Diffstat (limited to 'uploader/route_utils.py')
| -rw-r--r-- | uploader/route_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/route_utils.py b/uploader/route_utils.py index fa63233..426d7eb 100644 --- a/uploader/route_utils.py +++ b/uploader/route_utils.py @@ -56,7 +56,7 @@ def generic_select_population( def redirect_to_next(default: dict): """Redirect to the next uri if specified, else redirect to default.""" assert "uri" in default, "You must provide at least the 'uri' value." - _next = request.args.get("next") + _next = request.args.get("next") or "" if bool(_next): try: next_page = base64_decode_to_dict(_next) @@ -73,7 +73,7 @@ def redirect_to_next(default: dict): **{key:value for key,value in default.items() if key != "uri"})) -def build_next_argument(uri: str, **kwargs) -> str: +def build_next_argument(uri: str, **kwargs) -> bytes: """Build the `next` URI argument from provided details.""" dumps_keywords = ( "skipkeys", "ensure_ascii", "check_circular", "allow_nan", "cls", |
