Fix assignment
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user