forked from the-blue-alliance/the-blue-alliance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backend_main_b2.py
21 lines (18 loc) · 1.38 KB
/
backend_main_b2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
import webapp2
import tba_config
from controllers.admin.admin_cron_controller import AdminCreateDistrictsEnqueue, \
AdminCreateDistrictsDo
from controllers.backup_controller import TbaCSVBackupTeamsDo
from controllers.cron_controller import YearInsightsEnqueue, YearInsightsDo, OverallInsightsEnqueue, OverallInsightsDo, TypeaheadCalcEnqueue, TypeaheadCalcDo
app = webapp2.WSGIApplication([('/backend-tasks-b2/math/enqueue/overallinsights/(.*)', OverallInsightsEnqueue),
('/backend-tasks-b2/math/do/overallinsights/(.*)', OverallInsightsDo),
('/backend-tasks-b2/math/enqueue/insights/(.*)/([0-9]*)', YearInsightsEnqueue),
('/backend-tasks-b2/math/do/insights/(.*)/([0-9]*)', YearInsightsDo),
('/backend-tasks-b2/math/enqueue/typeaheadcalc', TypeaheadCalcEnqueue),
('/backend-tasks-b2/math/do/typeaheadcalc', TypeaheadCalcDo),
('/backend-tasks-b2/do/csv_backup_teams', TbaCSVBackupTeamsDo),
('/backend-tasks-b2/enqueue/rebuild_districts/([0-9]+)', AdminCreateDistrictsEnqueue),
('/backend-tasks-b2/do/rebuild_districts/([0-9]+)', AdminCreateDistrictsDo)
],
debug=tba_config.DEBUG)