New plants
This commit is contained in:
@@ -94,4 +94,20 @@ defmodule Osuuspuutarha.Harvest.Parser do
|
||||
def parse_plant(:kohlrabi) do
|
||||
"Kohlrabi"
|
||||
end
|
||||
|
||||
def parse_plant(:garlic) do
|
||||
"Garlic"
|
||||
end
|
||||
|
||||
def parse_plant(:onion) do
|
||||
"Onion"
|
||||
end
|
||||
|
||||
def parse_plant(:spinach) do
|
||||
"Spinach"
|
||||
end
|
||||
|
||||
def parse_plant(:parsley) do
|
||||
"Parsley"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,7 +31,11 @@ defmodule Osuuspuutarha.Harvest.Yield do
|
||||
:mangold,
|
||||
:paprika,
|
||||
:chili,
|
||||
:kohlrabi
|
||||
:kohlrabi,
|
||||
:garlic,
|
||||
:onion,
|
||||
:spinach,
|
||||
:parsley
|
||||
]
|
||||
|
||||
field :unit, Ecto.Enum, values: [:kg, :kpl]
|
||||
|
||||
@@ -28,18 +28,22 @@
|
||||
"Cauliflower": :cauliflower,
|
||||
"Chili": :chili,
|
||||
"Cucumber": :cucumber,
|
||||
"Garlic": :garlic,
|
||||
"Green Onions": :green_onions,
|
||||
"Kale": :kale,
|
||||
"Kohlrabi": :kohlrabi,
|
||||
"Lettuce": :lettuce,
|
||||
"Mangold": :mangold,
|
||||
"Melon": :melon,
|
||||
"Onion": :onion,
|
||||
"Paprika": :paprika,
|
||||
"Parsley": :parsley,
|
||||
"Parsnip": :parsnip,
|
||||
"Portulak": :portulak,
|
||||
"Pumpkin": :pumpkin,
|
||||
"Red Cabbage": :red_cabbage,
|
||||
"Rhubarb": :rhubarb,
|
||||
"Spinach": :spinach,
|
||||
"Sweet Corn": :sweet_corn,
|
||||
"Tomato": :tomato,
|
||||
"White Cabbage": :white_cabbage,
|
||||
|
||||
Reference in New Issue
Block a user