From d64101393901552654f1f651ba753714d9d66f02 Mon Sep 17 00:00:00 2001 From: elegantmoose Date: Wed, 21 Feb 2024 17:20:34 -0500 Subject: [PATCH] reverting, was importing wrong global var --- app/ascii_banner.py | 4 ++-- server.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/ascii_banner.py b/app/ascii_banner.py index 44aab367b..0411aa3aa 100644 --- a/app/ascii_banner.py +++ b/app/ascii_banner.py @@ -14,7 +14,7 @@ END = "\033[0m" -BANNER = """ +_BANNER = """ ██████╗ █████╗ ██╗ ██████╗ ███████╗██████╗ █████╗ ██╔════╝██╔══██╗██║ ██╔══██╗██╔════╝██╔══██╗██╔══██╗ ██║ ███████║██║ ██║ ██║█████╗ ██████╔╝███████║ @@ -47,7 +47,7 @@ def no_color(): if no_color(): - ASCII_BANNER = BANNER + ASCII_BANNER = _BANNER else: ASCII_BANNER = f"{DARK_BLUE}{_BANNER_SECTION_1}{DARK_PURPLE}{_BANNER_SECTION_2}{DARK_RED}{BANNER_SECTION_3}{END}" diff --git a/server.py b/server.py index 7d15209c9..3637d6197 100644 --- a/server.py +++ b/server.py @@ -15,7 +15,7 @@ import app.api.v2 from app import version -from app.ascii_banner import BANNER, no_color, print_rich_banner +from app.ascii_banner import ASCII_BANNER, no_color, print_rich_banner from app.api.rest_api import RestApi from app.api.v2.responses import apispec_request_validation_middleware from app.api.v2.security import pass_option_middleware @@ -150,7 +150,7 @@ def list_str(values): return values.split(",") parser = argparse.ArgumentParser( - description=BANNER, + description=ASCII_BANNER, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument(