Pārlūkot izejas kodu

fix requirements and cast float to string

Nikos Atlas 9 mēneši atpakaļ
vecāks
revīzija
bc73780fa9

+ 2 - 1
requirements.txt

@@ -1,6 +1,6 @@
 asgiref==3.5.0
 attrs==21.4.0
-backports.zoneinfo==0.2.1
+# backports.zoneinfo==0.2.1
 black==22.1.0
 certifi==2021.10.8
 charset-normalizer==2.0.12
@@ -40,3 +40,4 @@ types-PyYAML==6.0.4
 typing-extensions==4.1.1
 untokenize==0.1.1
 urllib3==1.26.8
+djangorestframework-xml==2.0.0

+ 1 - 1
telecaster/telecaster/serializers/XmlGeneratorSerializer.py

@@ -63,7 +63,7 @@ class XmlGeneratorSerializer(serializers.Serializer):
                 'image': product.get('image'),
                 'additionalimage': product.get('additionalimage'),
                 'category': category_name,
-                'price_with_vat': product.get('wholesale_price'),
+                'price_with_vat': str(product.get('wholesale_price')),
                 'vat': product.get('vat'),
                 'manufacturer': product.get('manufacturer'),
                 'mpn': product.get('mpn', 'M7652C'),  # fix this from prestashop API,