From 08a5d3a2f099547b9fe3ac1b682394ca59f43189 Mon Sep 17 00:00:00 2001 From: Morgan Nicholson <55922364+nichmorgan@users.noreply.github.com> Date: Fri, 20 Mar 2020 02:53:55 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20de=20bug=20em=20calculo=20?= =?UTF-8?q?de=20fretes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit O cálculo do frete (calculate_freights) estava enviando o type de pacote da classe e não o tipo de pacote de envio. --- correios/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/correios/client.py b/correios/client.py index 368a73b..482dc03 100644 --- a/correios/client.py +++ b/correios/client.py @@ -260,7 +260,7 @@ def calculate_freights( str(from_zip), str(to_zip), package.weight / KG, - package.package_type, + package.freight_package_type, package.length, package.height, package.width,