diff --git a/backend/endpoints/responses/platform.py b/backend/endpoints/responses/platform.py index 42fdb72de..7cdf8aa34 100644 --- a/backend/endpoints/responses/platform.py +++ b/backend/endpoints/responses/platform.py @@ -46,9 +46,8 @@ class PlatformSchema(BaseModel): def display_name(self) -> str: return self.custom_name or self.name - # Counts every row, missing ones included, so it means the same as - # `rom_count`. Callers that want only usable BIOS filter `firmware`, - # which ships with this schema. + # Counts every row like `rom_count` does; callers wanting only usable + # BIOS filter the `firmware` list that ships alongside it. @computed_field # type: ignore @property def firmware_count(self) -> int: diff --git a/backend/handler/database/firmware_handler.py b/backend/handler/database/firmware_handler.py index 621d82bb9..0ba75c02a 100644 --- a/backend/handler/database/firmware_handler.py +++ b/backend/handler/database/firmware_handler.py @@ -37,9 +37,8 @@ class DBFirmwareHandler(DBBaseHandler): hidden_platform_ids: Sequence[int] | None = None, session: Session = None, # type: ignore ) -> Sequence[Firmware]: - # `Firmware.platform` is `lazy="joined"`, which drags in Platform's - # rom_count / fs_size_bytes aggregate subqueries over `roms`. No - # caller here reads the relationship, so keep it out of the query. + # `Firmware.platform` is lazy="joined", which drags in Platform's + # rom_count and fs_size_bytes subqueries. No caller here reads it. query = ( select(Firmware) .options(noload(Firmware.platform)) diff --git a/frontend/src/v2/components/Settings/MissingFirmwareSection.vue b/frontend/src/v2/components/Settings/MissingFirmwareSection.vue index 8ed695b66..bf6a2eb5d 100644 --- a/frontend/src/v2/components/Settings/MissingFirmwareSection.vue +++ b/frontend/src/v2/components/Settings/MissingFirmwareSection.vue @@ -1,7 +1,6 @@