From 5e873705cb36af1b264cad4c3d4e639ead09a8e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 6 Jul 2023 00:14:55 +0200 Subject: [PATCH] Continued: - fixed issues reported by pylint --- daemon.py | 2 +- fba/commands.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 84d7832..a8c0eb9 100755 --- a/daemon.py +++ b/daemon.py @@ -105,7 +105,7 @@ def api_scoreboard(mode: str, amount: int): return scores @router.get(config.get("base_url") + "/api/list.json", response_class=JSONResponse) -def api_index(request: Request, mode: str, value: str, amount: int): +def api_list(request: Request, mode: str, value: str, amount: int): if mode is None or value is None or amount is None: raise HTTPException(status_code=500, detail="No filter specified") elif amount > config.get("api_limit"): diff --git a/fba/commands.py b/fba/commands.py index 38990bd..647b270 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -20,6 +20,8 @@ import json import logging import time +from urllib.parse import urlparse + import argparse import atoma import bs4 @@ -27,8 +29,6 @@ import markdown import reqto import validators -from urllib.parse import urlparse - from fba import csrf from fba import database from fba import utils -- 2.39.5