Fix assignment

This commit is contained in:
2026-01-13 18:07:01 -08:00
parent 2301ac357e
commit 83b520d2e2
10 changed files with 55 additions and 22 deletions
+5 -2
View File
@@ -35,7 +35,7 @@ class DataUI:
endTime = "Pending"
if v.startTime != None:
startTime = v.startTime.strftime('%H:%M')
if v.packages.count == 0:
if len(v.packages) == 0:
endTime = v.getTimeOfDay().strftime('%H:%M')
print(f"Truck [{v.id}] | "
@@ -50,9 +50,12 @@ class DataUI:
selection = self.selectionChooser(package_hash)
print("")
for i,v in enumerate(selection):
truckID = v.truckId
if truckID == -1:
truckID = "None"
print(f"[{v.id:2}] | "
f"[DeliveryNumber]: {v.deliveryNumber:2} | "
f"[onTruck]: {v.truckId:2} | "
f"[onTruck]: {truckID:4} | "
f"[Address]: {v.address[:20]:20} | "
f"[Status]: {v.status:10} | "
f"[Note]: {v.notes:10}")