Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
dxstiny committed May 24, 2024
1 parent ce2ccd3 commit 7310851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/db/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7310851

Please sign in to comment.