review(2-5): code-review pass for per-aircraft drawing — add heading guard, close story
- Add `or 0.0` defensive guard on `aircraft.heading` in `draw_aircraft` per spec (task 1.6) - Story 2-5 status: review → done - Sprint status updated: 2-5-per-aircraft-drawing done - Deferred work: add [2-5] default font 8px readability risk and [2-5] inline arrow geometry constants Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -78,5 +78,5 @@ def draw_aircraft(
|
||||
colour = altitude_to_colour(aircraft.altitude_ft)
|
||||
draw = ImageDraw.Draw(image)
|
||||
_draw_trail(draw, trail)
|
||||
_draw_arrow(draw, cx, cy, aircraft.heading, colour, aircraft.is_mlat)
|
||||
_draw_arrow(draw, cx, cy, aircraft.heading or 0.0, colour, aircraft.is_mlat)
|
||||
_draw_label(draw, cx, cy, aircraft, colour)
|
||||
|
||||
Reference in New Issue
Block a user