Skip to content

Commit

Permalink
Ruff: Fix RUF046
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Jan 2, 2025
1 parent 5678d55 commit 1bd5fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/product/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def view_product_metrics(request, pid):
end_date = filters["end_date"]

r = relativedelta(end_date, start_date)
weeks_between = int(ceil((((r.years * 12) + r.months) * 4.33) + (r.days / 7)))
weeks_between = ceil((((r.years * 12) + r.months) * 4.33) + (r.days / 7))
if weeks_between <= 0:
weeks_between += 2

Expand Down

0 comments on commit 1bd5fb8

Please sign in to comment.