Skip to content

Commit

Permalink
Updated documentation and fixed grammatical error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDervishi committed Jul 31, 2023
1 parent b9e2b18 commit a57347a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/grouping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -754,10 +754,10 @@ def get_random_incomplete(current_role)
# +filter_data['totalExtraMarkRange']+ is a hash with the keys 'min' and 'max' each mapping to a string representing
# a float. 'max' is the maximum and 'min' is the minimum total extra mark a result should have.
# +filter_data['criteria']+ is a list of hashes containing information about criteria to filter by. Each hash
# should contain a unique criterion name and can contain the keys 'min' and/or 'max' each mapping to a string
# representing a float. 'max' is the maximum and 'min' is the minimum grade for a given criterion a result should
# have. If both 'max' and 'min' are blank (a whitespace string/nil), filtering for the corresponding criterion will
# not occur.
# should contain the key 'name' mapping to a string corresponding to the criterion name and can contain the keys
# 'min' and/or 'max' each mapping to a string representing a float. 'max' is the maximum and 'min' is the minimum
# grade for the given criterion a result should have. If both 'max' and 'min' are blank (a whitespace string/nil),
# filtering for the corresponding criterion will not occur.
# To avoid filtering by any of the specified filters, don't set values for the corresponding key in +filter_data+
# or set it to nil. If the value for a key is blank (false, empty, or a whitespace string, as determined by
# `.blank?`), no filtering will occur for the corresponding option.
Expand Down

0 comments on commit a57347a

Please sign in to comment.