Skip to content

Commit

Permalink
reverting, was importing wrong global var
Browse files Browse the repository at this point in the history
  • Loading branch information
elegantmoose committed Feb 21, 2024
1 parent d237968 commit d641013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/ascii_banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
END = "\033[0m"


BANNER = """
_BANNER = """
██████╗ █████╗ ██╗ ██████╗ ███████╗██████╗ █████╗
██╔════╝██╔══██╗██║ ██╔══██╗██╔════╝██╔══██╗██╔══██╗
██║ ███████║██║ ██║ ██║█████╗ ██████╔╝███████║
Expand Down Expand Up @@ -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}"

Expand Down
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit d641013

Please sign in to comment.