From 1e5fe8b8bf594fd96bf98dd396b95889a9afb29d Mon Sep 17 00:00:00 2001 From: elegantmoose Date: Wed, 21 Feb 2024 13:04:21 -0500 Subject: [PATCH] made var public --- 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 836a133af..b146b4f19 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 17dece38e..7d15209c9 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 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=BANNER, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument(