Ver Fonte

fix bug with tabs

Alex Sidorov há 1 ano atrás
pai
commit
307ffee4c4
1 ficheiros alterados com 6 adições e 6 exclusões
  1. 6 6
      data_employee.py

+ 6 - 6
data_employee.py

@@ -96,12 +96,12 @@ class DataEmployee:
     def get_data_from_api(self):
         data = []
         for link_api in self.create_links_api():
-	    response = requests.get(link_api)
-	    try:
-		data.append(json.loads(response.text))
-	    except json.decoder.JSONDecodeError:
-		response.encoding = 'utf-8-sig'
-		data.append(json.loads(response.text))
+            response = requests.get(link_api)
+            try:
+                data.append(json.loads(response.text))
+            except json.decoder.JSONDecodeError:
+                response.encoding = 'utf-8-sig'
+                data.append(json.loads(response.text))
 
         return data