From 6de94aa7673885bd9584837688cbcdd160f594cb Mon Sep 17 00:00:00 2001 From: Sara Vieira Date: Fri, 30 Aug 2024 19:12:28 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com> --- backend/endpoints/rom.py | 4 ++-- frontend/src/components/common/Game/Dialog/EditRom.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index 3c8564591..f01e752ef 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -290,7 +290,7 @@ async def update_rom( rename_as_source: bool = False, remove_cover: bool = False, artwork: UploadFile | None = None, - unmatch: bool = False + unmatch_metadata: bool = False ) -> DetailedRomSchema: """Update rom endpoint @@ -299,7 +299,7 @@ async def update_rom( id (Rom): Rom internal id rename_as_source (bool, optional): Flag to rename rom file as matched IGDB game. Defaults to False. artwork (UploadFile, optional): Custom artork to set as cover. Defaults to File(None). - unmatch: Weather to remove the match for this game. Defaults to false + unmatch_metadata: Remove the metadata matches for this game. Defaults to False. Raises: HTTPException: If a rom already have that name when enabling the rename_as_source flag diff --git a/frontend/src/components/common/Game/Dialog/EditRom.vue b/frontend/src/components/common/Game/Dialog/EditRom.vue index e50cb1be8..99ea19bc6 100644 --- a/frontend/src/components/common/Game/Dialog/EditRom.vue +++ b/frontend/src/components/common/Game/Dialog/EditRom.vue @@ -226,7 +226,7 @@ function closeDialog() {