Skip to content

Commit e018806

Browse files
Wong-ZZangelsl
authored andcommitted
Minor format change
1 parent c37f276 commit e018806

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/cadet/course/groups.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ defmodule Cadet.Course.Groups do
77
# Returns a map where the group names are the key and the value is
88
# another map with "avengerName" and "id" as the key
99
def get_group_info() do
10-
Repo.all(Group)
10+
Group
11+
|> Repo.all()
1112
|> Enum.reduce(%{}, fn group, map -> Map.put(map, group.name, map_group_info(group))end)
1213
end
1314

lib/cadet_web/router.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ defmodule CadetWeb.Router do
4646
post("/grading/:submissionid/unsubmit", GradingController, :unsubmit)
4747
post("/grading/:submissionid/:questionid", GradingController, :update)
4848

49+
get("/groups", GroupController, :index)
50+
4951
get("/notification", NotificationController, :index)
5052
post("/notification/acknowledge", NotificationController, :acknowledge)
5153

0 commit comments

Comments
 (0)