Introduce :all group in shipments hash
This commit is contained in:
parent
9c54ba52f6
commit
f152e166f4
@ -11,7 +11,8 @@ module PlanetExpressExpress
|
|||||||
shipments = {
|
shipments = {
|
||||||
S: [],
|
S: [],
|
||||||
M: [],
|
M: [],
|
||||||
L: []
|
L: [],
|
||||||
|
all: []
|
||||||
}
|
}
|
||||||
|
|
||||||
current_month = 0
|
current_month = 0
|
||||||
@ -24,6 +25,7 @@ module PlanetExpressExpress
|
|||||||
close_month(shipments)
|
close_month(shipments)
|
||||||
end
|
end
|
||||||
shipments[shipment[:size]].last.push(shipment)
|
shipments[shipment[:size]].last.push(shipment)
|
||||||
|
shipments[:all].last.push(shipment)
|
||||||
|
|
||||||
current_year = shipment[:date].year
|
current_year = shipment[:date].year
|
||||||
current_month = shipment[:date].month
|
current_month = shipment[:date].month
|
||||||
|
Loading…
Reference in New Issue
Block a user