New location added

This commit is contained in:
2024-01-01 19:24:54 +02:00
parent e7f9ae1f77
commit b6f6e9af8c
3 changed files with 9 additions and 2 deletions

View File

@@ -20,7 +20,8 @@ defmodule Osuuspuutarha.Orders.Order do
:viherlassila,
:kirjakahvila,
:askainen,
:livonsaari
:livonsaari,
:merimasku
]
field :order_type, Ecto.Enum, values: [:full, :everyother, :elo, :community]

View File

@@ -33,6 +33,7 @@ defmodule Osuuspuutarha.Orders.Parser do
| :ocean
| :raisio
| :viherlassila
| :merimasku
) :: <<_::48, _::_*16>>
def parse_location(:koroinen) do
"Koroinen"
@@ -66,6 +67,10 @@ defmodule Osuuspuutarha.Orders.Parser do
"Livonsaari"
end
def parse_location(:merimasku) do
"Merimasku"
end
@spec parse_date(atom | %{:day => any, :month => any, :year => any, optional(any) => any}) ::
<<_::16, _::_*8>>
def parse_date(date) do