1
0

Introduce :all group in shipments hash

This commit is contained in:
Tim Kächele 2024-08-25 10:00:19 +02:00
parent 9c54ba52f6
commit f152e166f4

View File

@ -11,7 +11,8 @@ module PlanetExpressExpress
shipments = {
S: [],
M: [],
L: []
L: [],
all: []
}
current_month = 0
@ -24,6 +25,7 @@ module PlanetExpressExpress
close_month(shipments)
end
shipments[shipment[:size]].last.push(shipment)
shipments[:all].last.push(shipment)
current_year = shipment[:date].year
current_month = shipment[:date].month