Skip to content

Commit

Permalink
coalesce do deal with null
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Nov 14, 2023
1 parent 68eb39a commit 12a856d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/models/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def get_report_score(self, player_names: tuple[str]):
reported_player.possible_ban,
reported_player.confirmed_ban,
reported_player.confirmed_player,
dbReport.manual_detect,
func.coalesce(dbReport.manual_detect, 0).label("manual_detect"),
]
)
query = query.select_from(dbReport)
Expand Down

0 comments on commit 12a856d

Please sign in to comment.