From e570acff4f8012f860df8874245efc577c9fc512 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Sun, 5 Apr 2026 01:41:02 +0000 Subject: [PATCH] fix: add created_by_username parameter to BountyService.add_bounty The add_bounty method now accepts created_by_username parameter to store the creator's username for display purposes. --- core/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/services.py b/core/services.py index a9105af..ba0e00a 100644 --- a/core/services.py +++ b/core/services.py @@ -124,6 +124,7 @@ class BountyService: text: Optional[str] = None, link: Optional[str] = None, due_date_ts: Optional[int] = None, + created_by_username: Optional[str] = None, ) -> Bounty: """Add a new bounty to the room. Requires admin permission.""" if not self.is_admin(room_id, user_id): @@ -141,6 +142,7 @@ class BountyService: bounty = Bounty( id=room_data.next_id, created_by_user_id=user_id, + created_by_username=created_by_username, text=text, link=link, due_date_ts=due_date_ts,