File tree 1 file changed +12
-4
lines changed 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,19 @@ def schedule_json(year):
42
42
if not feature_enabled ("SCHEDULE" ):
43
43
abort (404 )
44
44
45
- if request .args .get ('format' ) == 'array' :
46
- schedule = [_convert_time_to_str (p ) for p in _get_scheduled_proposals (request .args )]
45
+ schedule = [_convert_time_to_str (p ) for p in _get_scheduled_proposals (request .args )]
47
46
48
- # NB this is JSON in a top-level array (security issue for low-end browsers)
49
- return Response (json .dumps (schedule ), mimetype = "application/json" )
47
+ # NB this is JSON in a top-level array (security issue for low-end browsers)
48
+ return Response (json .dumps (schedule ), mimetype = "application/json" )
49
+
50
+
51
+ @schedule .route ("/schedule/frab-<int:year>.json" )
52
+ def schedule_frab_json (year ):
53
+ if year != event_year ():
54
+ return feed_historic (year , "frab_json" )
55
+
56
+ if not feature_enabled ("SCHEDULE" ):
57
+ abort (404 )
50
58
51
59
def duration_hhmm (duration_minutes ):
52
60
if not duration_minutes or duration_minutes < 1 :
You can’t perform that action at this time.
0 commit comments