Improves readability of resolution display

Updates the format of resolution items displayed in the publisher's attribute for better readability.

Removes an unused import from server settings.
This commit is contained in:
Jakub Jezek 2025-05-09 10:50:20 +02:00
parent 4c5cc4923c
commit 824dc0cc81
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9
2 changed files with 5 additions and 3 deletions

View file

@ -72,7 +72,9 @@ class CollectExplicitResolution(
resolution_items = {}
for item in cls.options:
item_text = (
f"{item['width']}x{item['height']} ({item['pixel_aspect']})")
f"{item['width']}x{item['height']} "
f"({item['pixel_aspect']})"
)
resolution_items[item_text] = item
cls.resolution_items = resolution_items

View file

@ -1,4 +1,3 @@
from collections.abc import Iterable
from pydantic import validator
from typing import Any
@ -221,7 +220,8 @@ class CollectExplicitResolutionModel(BaseSettingsModel):
default_factory=list,
title="Resolution choices",
description=(
"Available resolution choices to be displayed in the publishers attribute."
"Available resolution choices to be displayed in "
"the publishers attribute."
)
)