瀏覽代碼

fix bug with tabs

Alex Sidorov 1 年之前
父節點
當前提交
307ffee4c4
共有 1 個文件被更改,包括 6 次插入6 次删除
  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