refactored api resource map and added total to search query
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# TODO: make a separate policy setting to enable/disable notes.
|
||||
def notes_enabled_for_course(course):
|
||||
''' Returns True if notes are enabled for the course, False otherwise. '''
|
||||
'''
|
||||
Returns True if the notes app is enabled for the course, False otherwise.
|
||||
'''
|
||||
# TODO: create a separate policy setting to enable/disable notes
|
||||
notes_tab_type = 'notes'
|
||||
return next((True for tab in course.tabs if tab['type'] == notes_tab_type), False)
|
||||
|
||||
Reference in New Issue
Block a user