Skip to content

Commit

Permalink
fix negative modulo (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen authored Jul 7, 2024
1 parent 02fe018 commit f115345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def calculate_new_polygon_parameters(azimuth, opening_angle, localization):
# New opening angle
new_opening_angle = opening_angle * width / 100 + 1 # avoid angle 0

return int(new_azimuth), int(new_opening_angle)
return int(new_azimuth) % 360, int(new_opening_angle)


def build_sites_markers(user_headers, user_credentials):
Expand Down

0 comments on commit f115345

Please sign in to comment.