File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ class DataTypeForm(FlaskForm):
1616 validators = [InputRequired (message = "Select which data you want to download" )],
1717 choices = [
1818 (CHILD_RECORDS , "Child-level vaccination data" ),
19- (AGGREGATE_DATA , "Aggregate vaccination data" ),
19+ # (AGGREGATE_DATA, "Aggregate vaccination data"),
2020 ],
2121 )
Original file line number Diff line number Diff line change 2828 {% set _ = items .append ({
2929 "value" : choice [0],
3030 "text" : choice [1],
31+ "checked" : choice [0] == "child-records" ,
3132 }) %}
3233 {% endfor %}
3334
Original file line number Diff line number Diff line change 33from flask import (
44 Blueprint ,
55 Response ,
6+ abort ,
67 current_app ,
78 g ,
89 redirect ,
@@ -71,7 +72,8 @@ def start_download(workgroup):
7172 if form .data_type .data == DataTypeForm .CHILD_RECORDS :
7273 return redirect (mavis_helper .mavis_public_url (current_app , "/programmes" ))
7374 elif form .data_type .data == DataTypeForm .AGGREGATE_DATA :
74- return redirect (url_for ("main.download" , workgroup = team .workgroup ))
75+ raise ValueError ("Invalid data type" )
76+ # return redirect(url_for("main.download", workgroup=team.workgroup))
7577 else :
7678 raise ValueError ("Invalid data type" )
7779
@@ -97,6 +99,8 @@ def start_download(workgroup):
9799@main .route ("/team/<workgroup>/download" , methods = ["GET" , "POST" ])
98100@auth_helper .login_required
99101def download (workgroup ):
102+ abort (404 )
103+
100104 team = Team .get_from_session (session )
101105 if team .workgroup != workgroup :
102106 return redirect (url_for ("main.download" , workgroup = team .workgroup ))
You can’t perform that action at this time.
0 commit comments