mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-10-02 13:57:33 -05:00
Fix latest set of lint errors.
This commit is contained in:
@@ -9,12 +9,10 @@ from bemani.utils.config import (
|
||||
|
||||
|
||||
def load_config(filename: str) -> None:
|
||||
global config
|
||||
base_load_config(filename, config)
|
||||
|
||||
|
||||
def instantiate_cache(app: Any) -> None:
|
||||
global config
|
||||
base_instantiate_cache(config, app)
|
||||
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@ from bemani.utils.config import (
|
||||
|
||||
|
||||
def register_blueprints() -> None:
|
||||
global config
|
||||
|
||||
app.register_blueprint(account_pages)
|
||||
app.register_blueprint(admin_pages)
|
||||
app.register_blueprint(arcade_pages)
|
||||
@@ -52,18 +50,15 @@ def register_blueprints() -> None:
|
||||
|
||||
|
||||
def register_games() -> None:
|
||||
global config
|
||||
base_register_games(config)
|
||||
|
||||
|
||||
def load_config(filename: str) -> None:
|
||||
global config
|
||||
base_load_config(filename, config)
|
||||
app.secret_key = config.secret_key
|
||||
|
||||
|
||||
def instantiate_cache(app: Any) -> None:
|
||||
global config
|
||||
base_instantiate_cache(config, app)
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import argparse
|
||||
import os
|
||||
|
||||
from bemani.protocol import EAmuseProtocol
|
||||
|
||||
|
||||
@@ -237,8 +237,6 @@ def receive_request(path: str) -> Response:
|
||||
|
||||
|
||||
def load_proxy_config(filename: str) -> None:
|
||||
global config
|
||||
|
||||
config_data = yaml.safe_load(open(filename))
|
||||
if "pcbid" in config_data and config_data["pcbid"] is not None:
|
||||
for pcbid in config_data["pcbid"]:
|
||||
@@ -248,8 +246,6 @@ def load_proxy_config(filename: str) -> None:
|
||||
|
||||
|
||||
def load_config(filename: str) -> None:
|
||||
global config
|
||||
|
||||
config_data = yaml.safe_load(open(filename))
|
||||
config.update(
|
||||
{
|
||||
|
||||
@@ -21,7 +21,6 @@ config = Config()
|
||||
@app.route("/", defaults={"path": ""}, methods=["GET"])
|
||||
@app.route("/<path:path>", methods=["GET"])
|
||||
def receive_healthcheck(path: str) -> Response:
|
||||
global config
|
||||
redirect_uri = config.server.redirect
|
||||
if redirect_uri is None:
|
||||
# Return a standard status OKAY message.
|
||||
@@ -53,7 +52,6 @@ def receive_request(path: str) -> Response:
|
||||
return Response("Unrecognized packet!", 500)
|
||||
|
||||
# Create and format config
|
||||
global config
|
||||
requestconfig = config.clone()
|
||||
requestconfig["client"] = {
|
||||
"address": remote_address or request.remote_addr,
|
||||
@@ -119,17 +117,14 @@ def receive_request(path: str) -> Response:
|
||||
|
||||
|
||||
def register_games() -> None:
|
||||
global config
|
||||
base_register_games(config)
|
||||
|
||||
|
||||
def load_config(filename: str) -> None:
|
||||
global config
|
||||
base_load_config(filename, config)
|
||||
|
||||
|
||||
def instantiate_cache(app: Any) -> None:
|
||||
global config
|
||||
base_instantiate_cache(config, app)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user