Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Commit 4a05899

Browse files
Merge pull request #419 from aibtcdev/fix
fix
2 parents 5fe788e + 881d9bf commit 4a05899

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/backend/supabase.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,12 +2265,11 @@ def get_lottery_result_by_proposal(
22652265
self.client.table("lottery_results")
22662266
.select("*")
22672267
.eq("proposal_id", str(proposal_id))
2268-
.single()
22692268
.execute()
22702269
)
22712270
if not response.data:
22722271
return None
2273-
return LotteryResult(**response.data)
2272+
return LotteryResult(**response.data[0])
22742273

22752274
def list_lottery_results(
22762275
self, filters: Optional["LotteryResultFilter"] = None

0 commit comments

Comments
 (0)