chore: removed all JLCPCB direct integration code

This commit is contained in:
Benny Megidish
2022-07-26 14:26:56 +03:00
parent a39b65c94c
commit 5b821aebe2
2 changed files with 0 additions and 19 deletions
-15
View File
@@ -1,6 +1,3 @@
# from urllib import response
# import json
# import requests
import os
import csv
import shutil
@@ -170,18 +167,6 @@ class ProcessManager:
return temp_file
def upload_archive(self, temp_file):
boardWidth = pcbnew.Iu2Millimeter(self.board.GetBoardEdgesBoundingBox().GetWidth())
boardHeight = pcbnew.Iu2Millimeter(self.board.GetBoardEdgesBoundingBox().GetHeight())
boardLayer = self.board.GetCopperLayerCount()
files = { 'upload[file]': open(temp_file, 'rb') }
upload_url = baseUrl + '/Common/KiCadUpFile/'
# response = requests.post(
# upload_url, files=files, data={ 'boardWidth': boardWidth, 'boardHeight': boardHeight, 'boardLayer': boardLayer })
# urls = json.loads(response.content)
def _getMpnFromFootprint(self, footprint):
keys = ['mpn', 'Mpn', 'MPN', 'JLC_MPN', 'LCSC_MPN', 'LCSC Part #', 'JLC', 'LCSC']
for key in keys:
-4
View File
@@ -50,10 +50,6 @@ class ProcessThread(Thread):
self.report(75)
temp_file = self.process_manager.generate_archive(temp_dir, temp_file)
# upload files
#self.report(87.5)
#self.process_manager.upload_archive(temp_file)
# progress bar done animation
read_so_far = 0
total_size = os.path.getsize(temp_file)