Skip to content

Commit

Permalink
Create bucket if it wasn't there before.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGlazov committed Aug 14, 2021
1 parent 69d5edf commit 95648d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,8 @@ Version 1.4.2
Version 1.4.3

- Fix crash on retroactive compute of some old pilot snipes.
- Defensive ammo breakdown is now correctly recomputed.
- Defensive ammo breakdown is now correctly recomputed.

Version 1.4.4

- Fix bug where retroactive compute would sometimes hang on processing best aircraft streaks.
2 changes: 1 addition & 1 deletion src/mod_stats_by_aircraft/aircraft_stats_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def process_streaks_and_best_sorties(bucket, sortie):
aircraft=bucket.aircraft,
filter_type=bucket.filter_type,
player=None,
).get()
).get_or_create()[0]

if bucket.max_score_streak > not_player_bucket.max_score_streak:
not_player_bucket.max_score_streak = bucket.max_score_streak
Expand Down

0 comments on commit 95648d1

Please sign in to comment.