Added corn yield
This commit is contained in:
@@ -110,4 +110,8 @@ defmodule Osuuspuutarha.Harvest.Parser do
|
|||||||
def parse_plant(:parsley) do
|
def parse_plant(:parsley) do
|
||||||
"Parsley"
|
"Parsley"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def parse_plant(:corn) do
|
||||||
|
"Corn"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ defmodule Osuuspuutarha.Harvest.Yield do
|
|||||||
:garlic,
|
:garlic,
|
||||||
:onion,
|
:onion,
|
||||||
:spinach,
|
:spinach,
|
||||||
:parsley
|
:parsley,
|
||||||
|
:corn
|
||||||
]
|
]
|
||||||
|
|
||||||
field :unit, Ecto.Enum, values: [:kg, :kpl]
|
field :unit, Ecto.Enum, values: [:kg, :kpl]
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"Carrot": :carrot,
|
"Carrot": :carrot,
|
||||||
"Cauliflower": :cauliflower,
|
"Cauliflower": :cauliflower,
|
||||||
"Chili": :chili,
|
"Chili": :chili,
|
||||||
|
"Corn": :corn,
|
||||||
"Cucumber": :cucumber,
|
"Cucumber": :cucumber,
|
||||||
"Garlic": :garlic,
|
"Garlic": :garlic,
|
||||||
"Green Onions": :green_onions,
|
"Green Onions": :green_onions,
|
||||||
|
|||||||
Reference in New Issue
Block a user