load lines commented

This commit is contained in:
jothi
2025-08-06 14:01:53 +05:30
parent 347e432b4a
commit 6f3f8568ea

12
pds.py
View File

@@ -480,12 +480,12 @@ class ProductionBotScreen(QWidget):
self.awaiting_plants = True
QTimer.singleShot(500, self.load_plants)
def load_plants(self):
url = "https://pds.iotsignin.com/api/get/moduleplant-name/data"
headers = {
"Authorization": "Bearer sb-eba140ab-74bb-44a4-8d92-70a636940def!b1182|it-rt-dev-cri-stjllphr!b68:616d8991-307b-4ab1-be37-7894a8c6db9d$0p0fE2I7w1Ve23-lVSKQF0ka3mKrTVcKPJYELr-i4nE=",
"plant-name": "Plant List"
}
# def load_plants(self):
# url = "https://pds.iotsignin.com/api/get/moduleplant-name/data"
# headers = {
# "Authorization": "Bearer sb-eba140ab-74bb-44a4-8d92-70a636940def!b1182|it-rt-dev-cri-stjllphr!b68:616d8991-307b-4ab1-be37-7894a8c6db9d$0p0fE2I7w1Ve23-lVSKQF0ka3mKrTVcKPJYELr-i4nE=",
# "plant-name": "Plant List"
# }
try:
response = requests.get(url, headers=headers, timeout=10)
response.raise_for_status()