Skip to content

Commit

Permalink
black check all
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Mar 20, 2024
1 parent bf327ed commit cf14cba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
10 changes: 5 additions & 5 deletions src/app/views/response/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def from_data(self, data: dict, breakdown: bool):
"prediction_label": data.pop("prediction").lower(),
"prediction_confidence": data.pop("predicted_confidence") / 100.0,
"created": data.pop("created"),
"predictions_breakdown": {
k: v / 100.0 if v > 0 else v for k, v in data.items()
}
if breakdown
else {},
"predictions_breakdown": (
{k: v / 100.0 if v > 0 else v for k, v in data.items()}
if breakdown
else {}
),
}

return self(**player_data)

0 comments on commit cf14cba

Please sign in to comment.