Commit 75f7e7b 1 parent ef49f18 commit 75f7e7b Copy full SHA for 75f7e7b
File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ <h1 class="mb-4">Sign in</h1>
9
9
{% else %}
10
10
< h1 class ="mb-4 "> {{ page_title }}</ h1 >
11
11
< div class ="list-group " style ="max-width: 32rem; ">
12
+ < a class ="list-group-item list-group-item-action d-flex align-items-center justify-content-between " href ="{% session_url 'volunteer_csv_progress' %}?show_all=1 ">
13
+ < span class ="me-3 "> All volunteer progress for session (may be slow)</ span >
14
+ {% include 'crowdsourcer/includes/csv-badge.html' %}
15
+ </ a >
12
16
< a class ="list-group-item list-group-item-action d-flex align-items-center justify-content-between " href ="{% session_url 'all_first_marks_csv' %} ">
13
17
< span class ="me-3 "> First Mark Scores</ span >
14
18
{% include 'crowdsourcer/includes/csv-badge.html' %}
Original file line number Diff line number Diff line change @@ -355,11 +355,15 @@ def test_func(self):
355
355
return self .request .user .is_superuser
356
356
357
357
def get_queryset (self ):
358
- return Assigned .objects .filter (
359
- user__is_active = True ,
360
- active = True ,
358
+ assigned = Assigned .objects .filter (
361
359
marking_session = self .request .current_session ,
362
360
)
361
+ if self .request .GET .get ("show_all" ) != "1" :
362
+ assigned = assigned .filter (
363
+ user__is_active = True ,
364
+ active = True ,
365
+ )
366
+ return assigned
363
367
364
368
def render_to_response (self , context , ** response_kwargs ):
365
369
response = HttpResponse (content_type = "text/csv" )
You can’t perform that action at this time.
0 commit comments