From 1bd5fb8a0ba71f9ca564ea6d796257481ca10df2 Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:40:47 +0100 Subject: [PATCH] Ruff: Fix RUF046 --- dojo/product/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/product/views.py b/dojo/product/views.py index 654169363dc..f6c5af6c418 100644 --- a/dojo/product/views.py +++ b/dojo/product/views.py @@ -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