From a0e7fdfa5b89d82c67808b94a3b5ad35dc5fa035 Mon Sep 17 00:00:00 2001 From: "g.jahn" Date: Thu, 5 Jun 2025 15:58:29 +0200 Subject: [PATCH] =?UTF-8?q?Runden=20der=20Kabel=20jetzt=20auf=205m=20L?= =?UTF-8?q?=C3=A4ngen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/drawdxf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/drawdxf.py b/lib/drawdxf.py index 08931a4..32bbf53 100644 --- a/lib/drawdxf.py +++ b/lib/drawdxf.py @@ -137,7 +137,7 @@ def write_excel_from_json(plines:Polylines, outpath:str): for pl in plines.kabel: length = pl.length /1000 # Umrechnung von mm in m - rounded_len = math.ceil(length/10)*10 + rounded_len = math.ceil(length/5)*5 length_summary[rounded_len] +=1 ws1.append([pl.id, length, int(rounded_len)])