diff --git a/cli-tool/cli.py b/cli-tool/cli.py index 42525be..6e814d2 100644 --- a/cli-tool/cli.py +++ b/cli-tool/cli.py @@ -59,7 +59,7 @@ def login(): file.writelines(f'USERNAME={json.loads(response.text)["username"]}\n') print(f"Welcome to MediaCMS [bold blue]{username}[/bold blue]. Your auth creds have been suceesfully stored in the .env file", ":v:") else: - print(f'Error: {"non_field_errors":["User not found."]}') + print(f'Error: {"non_field_errors": ["User not found."]}') @apis.command() diff --git a/cms/settings.py b/cms/settings.py index dff2261..dd27179 100644 --- a/cms/settings.py +++ b/cms/settings.py @@ -467,7 +467,7 @@ except ImportError: if "http" not in FRONTEND_HOST: # FRONTEND_HOST needs a http:// preffix - FRONTEND_HOST = f"http://{FRONTEND_HOST}" + FRONTEND_HOST = f"http://{FRONTEND_HOST}" # noqa if LOCAL_INSTALL: SSL_FRONTEND_HOST = FRONTEND_HOST.replace("http", "https") diff --git a/files/helpers.py b/files/helpers.py index 948c525..5e78c59 100644 --- a/files/helpers.py +++ b/files/helpers.py @@ -538,8 +538,8 @@ def get_base_ffmpeg_command( target_width = round(target_height * 16 / 9) scale_filter_opts = [ - f"if(lt(iw\\,ih)\\,{target_height}\\,{target_width})", - f"if(lt(iw\\,ih)\\,{target_width}\\,{target_height})", + f"if(lt(iw\\,ih)\\,{target_height}\\,{target_width})", # noqa + f"if(lt(iw\\,ih)\\,{target_width}\\,{target_height})", # noqa "force_original_aspect_ratio=decrease", "force_divisible_by=2", "flags=lanczos",