Skip to content

Commit 0b4de04

Browse files
committed
Formatting
1 parent 4b03ad8 commit 0b4de04

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

lib/cadet_web/admin_controllers/admin_grading_controller.ex

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,15 @@ defmodule CadetWeb.AdminGradingController do
5858
index(conn, %{"group" => "false"})
5959
end
6060

61-
@doc """
62-
# Description
63-
Attains every assessment submission registered, regardless of grading
64-
or attempted status. This is a special call of the general `index`
65-
submission whereby pagination is bypassed.
66-
"""
6761
def index_all_submissions(conn, _) do
68-
# 100 billion page size here should cover all feasible table rows in 1 page
69-
# given that the hard limit of pages in a postgres database is ~4 billion.
70-
# (https://www.postgresql.org/docs/current/limits.html)
71-
index(conn, %{"group" => "false", "pageSize" => "100000000000", "offset" => "0"})
62+
index(
63+
conn,
64+
%{
65+
"group" => "false",
66+
"pageSize" => "100000000000",
67+
"offset" => "0"
68+
}
69+
)
7270
end
7371

7472
def show(conn, %{"submissionid" => submission_id}) when is_ecto_id(submission_id) do

0 commit comments

Comments
 (0)