소스 검색

BUG: swap GR for EL

closes #7
Erfan Nariman 3 년 전
부모
커밋
3b260fb4ac
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      pyVies/api.py

+ 3 - 3
pyVies/api.py

@@ -92,8 +92,8 @@ class Vies(object):
                 raise ViesValidationError('Invalid VAT number provided')
 
             vat_country_code = vat_country_code.upper()
-            if vat_country_code== 'EL':
-                vat_country_code = 'GR'
+            if vat_country_code == 'GR':
+                vat_country_code = 'EL'
             else:
                 vat_number = vat_number[2:]
 
@@ -158,4 +158,4 @@ def console():
 
 
 if __name__ == '__main__':
-    console()
+    console()