Skip to content

Commit

Permalink
Merge pull request #81 from camino-school/66-grade-report-scaffolding
Browse files Browse the repository at this point in the history
closes #66
  • Loading branch information
endoooo authored Mar 8, 2024
2 parents d879a39 + a2cbfd2 commit 892cdbb
Show file tree
Hide file tree
Showing 46 changed files with 2,849 additions and 430 deletions.
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
min_machines_running = 1
processes = ["app"]
[http_service.concurrency]
type = "connections"
Expand Down
6 changes: 4 additions & 2 deletions lib/lanttern/personalization/profile_settings.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ defmodule Lanttern.Personalization.ProfileSettings do
@type current_filters() :: %__MODULE__.CurrentFilters{
classes_ids: [pos_integer()],
subjects_ids: [pos_integer()],
years_ids: [pos_integer()]
years_ids: [pos_integer()],
cycles_ids: [pos_integer()]
}

schema "profile_settings" do
Expand All @@ -26,6 +27,7 @@ defmodule Lanttern.Personalization.ProfileSettings do
field :classes_ids, {:array, :id}
field :subjects_ids, {:array, :id}
field :years_ids, {:array, :id}
field :cycles_ids, {:array, :id}
end

timestamps()
Expand All @@ -41,6 +43,6 @@ defmodule Lanttern.Personalization.ProfileSettings do

defp current_filters_changeset(current_filters, attrs) do
current_filters
|> cast(attrs, [:classes_ids, :subjects_ids, :years_ids])
|> cast(attrs, [:classes_ids, :subjects_ids, :years_ids, :cycles_ids])
end
end
Loading

0 comments on commit 892cdbb

Please sign in to comment.