lint: various non-semantic fixes
This commit is contained in:
parent
273dcb2a8a
commit
7a731f6999
2 changed files with 10 additions and 10 deletions
|
@ -20,18 +20,18 @@ bp = Blueprint("list", __name__)
|
|||
|
||||
|
||||
@bp.app_template_filter("provider_name")
|
||||
def list_provider_name(s: str) -> str:
|
||||
return MirrorList.providers_supported.get(s, "Unknown")
|
||||
def list_provider_name(key: str) -> str:
|
||||
return MirrorList.providers_supported.get(key, "Unknown")
|
||||
|
||||
|
||||
@bp.app_template_filter("format_name")
|
||||
def list_format_name(s: str) -> str:
|
||||
return MirrorList.formats_supported.get(s, "Unknown")
|
||||
def list_format_name(key: str) -> str:
|
||||
return MirrorList.formats_supported.get(key, "Unknown")
|
||||
|
||||
|
||||
@bp.app_template_filter("list_encoding_name")
|
||||
def list_encoding_name(s: str) -> str:
|
||||
return MirrorList.encodings_supported.get(s, "Unknown")
|
||||
def list_encoding_name(key: str) -> str:
|
||||
return MirrorList.encodings_supported.get(key, "Unknown")
|
||||
|
||||
|
||||
@bp.route('/list')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue