From 7310851afebb0c3d04c0a655ccb59c854fca0124 Mon Sep 17 00:00:00 2001 From: David Dias Horta Date: Fri, 24 May 2024 20:24:50 +0200 Subject: [PATCH] fix pylint --- service/db/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/db/db.py b/service/db/db.py index 9f67d97..8f132f5 100644 --- a/service/db/db.py +++ b/service/db/db.py @@ -120,9 +120,9 @@ def get_announcements(self) -> list[Announcement]: """Get all announcements from the database.""" return [Announcement(**x) for x in self._announcements_table.all()] - def get_announcement(self, id: int) -> Announcement | None: + def get_announcement(self, id_: int) -> Announcement | None: """Get an announcement by its ID.""" - result = self._announcements_table.find_one(id=id) + result = self._announcements_table.find_one(id=id_) if result: return Announcement(**result) return None