Introduce :all group in shipments hash
This commit is contained in:
parent
9c54ba52f6
commit
f152e166f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user