Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

66 grade report scaffolding #81

Merged
merged 17 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading