Spaces:
Sleeping
Sleeping
Update Doors_Schedule.py
Browse files- Doors_Schedule.py +3 -0
Doors_Schedule.py
CHANGED
|
@@ -445,10 +445,13 @@ def get_width_info_tobeprinted(new_data):
|
|
| 445 |
width_info_tobeprinted = []
|
| 446 |
if len(new_data[0]) == 4:
|
| 447 |
for _,_,_, w in new_data:
|
|
|
|
| 448 |
w = int(float(w))
|
| 449 |
width_info_tobeprinted.append(w)
|
| 450 |
if len(new_data[0]) == 5:
|
| 451 |
for _,_,_, w,h in new_data:
|
|
|
|
|
|
|
| 452 |
w = int(float(w))
|
| 453 |
h = int(float(h))
|
| 454 |
width_info_tobeprinted.append(f"{w} mm wide x {h} mm high")
|
|
|
|
| 445 |
width_info_tobeprinted = []
|
| 446 |
if len(new_data[0]) == 4:
|
| 447 |
for _,_,_, w in new_data:
|
| 448 |
+
w = re.sub(r",", "", w)
|
| 449 |
w = int(float(w))
|
| 450 |
width_info_tobeprinted.append(w)
|
| 451 |
if len(new_data[0]) == 5:
|
| 452 |
for _,_,_, w,h in new_data:
|
| 453 |
+
w = re.sub(r",", "", w)
|
| 454 |
+
h = re.sub(r",", "", h)
|
| 455 |
w = int(float(w))
|
| 456 |
h = int(float(h))
|
| 457 |
width_info_tobeprinted.append(f"{w} mm wide x {h} mm high")
|