mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Fix Typos
This commit is contained in:
parent
fe71fa2d8c
commit
dc53d8a8b1
@ -44,8 +44,7 @@ def check_config_exists():
|
|||||||
|
|
||||||
def load_version(app: Flask):
|
def load_version(app: Flask):
|
||||||
if os.environ.get("SOURCE_VERSION"):
|
if os.environ.get("SOURCE_VERSION"):
|
||||||
app.config['VERSION'] = os.environ.get("SOURCE_VERSION")[
|
app.config['VERSION'] = os.environ.get("SOURCE_VERSION")[0:7] # type: ignore # noqa: E501
|
||||||
0:7] # type: ignore
|
|
||||||
elif os.path.isfile(".version"):
|
elif os.path.isfile(".version"):
|
||||||
with open('.version', 'r') as file:
|
with open('.version', 'r') as file:
|
||||||
data = file.read().replace('\n', '')
|
data = file.read().replace('\n', '')
|
||||||
@ -86,7 +85,7 @@ def load_dbconfig(app: Flask):
|
|||||||
|
|
||||||
def setup_config(app: Flask):
|
def setup_config(app: Flask):
|
||||||
if check_config_exists() == False:
|
if check_config_exists() == False:
|
||||||
print("No config found, creating new config"):
|
print("No config found, creating new config")
|
||||||
initial_username = os.environ.get("INITIAL_USERNAME")
|
initial_username = os.environ.get("INITIAL_USERNAME")
|
||||||
initial_password = os.environ.get("INITIAL_PASSWORD")
|
initial_password = os.environ.get("INITIAL_PASSWORD")
|
||||||
if initial_username is None:
|
if initial_username is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user