From 1e9a14a1c080f9de39e7e502f868839f7af7c483 Mon Sep 17 00:00:00 2001 From: andywar65 Date: Thu, 1 Dec 2022 20:42:50 +0100 Subject: [PATCH] fixed bug in download dxf --- models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models.py b/models.py index 425e3bb..48f8eab 100644 --- a/models.py +++ b/models.py @@ -371,10 +371,10 @@ def get_file_to_download(self): # add insertions for drw_layer in drw_layers: for insert in drw_layer.insertions.all(): - point = latlong2xy(insert.point["coordinates"], longp, latp) + point = latlong2xy([insert.point["coordinates"]], longp, latp) msp.add_blockref( insert.block.name, - point, + point[0], dxfattribs={ "xscale": insert.x_scale, "yscale": insert.y_scale,