|
3 | 3 |
|
4 | 4 | urlpatterns = [ |
5 | 5 | path( |
6 | | - "scenario/results/visualize", |
| 6 | + "scenario/results/visualize/", |
7 | 7 | scenario_visualize_results, |
8 | 8 | name="scenario_visualize_results", |
9 | 9 | ), |
10 | 10 | path( |
11 | | - "scenario/results/visualize/<int:scen_id>", |
| 11 | + "scenario/results/visualize/<int:scen_id>/", |
12 | 12 | scenario_visualize_results, |
13 | 13 | name="scenario_visualize_results", |
14 | 14 | ), |
15 | 15 | path( |
16 | | - "project/<int:proj_id>/scenario/<int:scen_id>/results/visualize", |
| 16 | + "project/<int:proj_id>/scenario/<int:scen_id>/results/visualize/", |
17 | 17 | scenario_visualize_results, |
18 | 18 | name="scenario_visualize_results", |
19 | 19 | ), |
20 | 20 | path( |
21 | | - "project/<int:proj_id>/scenario/results/visualize", |
| 21 | + "project/<int:proj_id>/scenario/results/visualize/", |
22 | 22 | scenario_visualize_results, |
23 | 23 | name="project_visualize_results", |
24 | 24 | ), |
25 | 25 | path( |
26 | | - "project/<int:proj_id>/scenario/results/compare", |
| 26 | + "project/<int:proj_id>/scenario/results/compare/", |
27 | 27 | project_compare_results, |
28 | 28 | name="project_compare_results", |
29 | 29 | ), |
30 | | - path("result-change-project", result_change_project, name="result_change_project"), |
31 | 30 | path( |
32 | | - "project/<int:proj_id>/scenario/results/sensitivity-analysis", |
| 31 | + "result-change-project/", |
| 32 | + result_change_project, |
| 33 | + name="result_change_project", |
| 34 | + ), |
| 35 | + path( |
| 36 | + "project/<int:proj_id>/scenario/results/sensitivity-analysis/", |
33 | 37 | project_sensitivity_analysis, |
34 | 38 | name="project_sensitivity_analysis", |
35 | 39 | ), |
36 | 40 | path( |
37 | | - "project/<int:proj_id>/scenario/results/sensitivity-analysis/<int:sa_id>", |
| 41 | + "project/<int:proj_id>/scenario/results/sensitivity-analysis/<int:sa_id>/", |
38 | 42 | project_sensitivity_analysis, |
39 | 43 | name="project_sensitivity_analysis", |
40 | 44 | ), |
41 | 45 | path( |
42 | | - "project/<int:proj_id>/scenario/results/sensitivity-analysis/add-graph", |
| 46 | + "project/<int:proj_id>/scenario/results/sensitivity-analysis/add-graph/", |
43 | 47 | sensitivity_analysis_create_graph, |
44 | 48 | name="sensitivity_analysis_create_graph", |
45 | 49 | ), |
46 | 50 | path( |
47 | | - "ajax/sensitivity-analysis/graph-parameters", |
| 51 | + "ajax/sensitivity-analysis/graph-parameters/", |
48 | 52 | ajax_get_sensitivity_analysis_parameters, |
49 | 53 | name="ajax_get_sensitivity_analysis_parameters", |
50 | 54 | ), |
51 | 55 | path( |
52 | | - "scenario/results/available/<int:scen_id>", |
| 56 | + "scenario/results/available/<int:scen_id>/", |
53 | 57 | scenario_available_results, |
54 | 58 | name="scenario_available_results", |
55 | 59 | ), |
56 | 60 | path( |
57 | | - "scenario/results/request_economic_data/<int:scen_id>", |
| 61 | + "scenario/results/request_economic_data/<int:scen_id>/", |
58 | 62 | scenario_economic_results, |
59 | 63 | name="scenario_economic_results", |
60 | 64 | ), |
61 | 65 | re_path( |
62 | | - r"^asset/view_form/(?P<scen_id>\d+)/(?P<asset_type_name>\w+)?(/(?P<asset_uuid>[0-9a-f-]+))?$", |
| 66 | + r"^asset/view_form/(?P<scen_id>\d+)/(?P<asset_type_name>\w+)?(/(?P<asset_uuid>[0-9a-f-]+))?/$", |
63 | 67 | view_asset_parameters, |
64 | 68 | name="view_asset_parameters", |
65 | 69 | ), |
66 | 70 | path( |
67 | | - "project/<int:proj_id>/scenario/results/request_kpi_table", |
| 71 | + "project/<int:proj_id>/scenario/results/request_kpi_table/", |
68 | 72 | request_kpi_table, |
69 | 73 | name="request_kpi_table", |
70 | 74 | ), |
71 | 75 | re_path( |
72 | | - r"^project/(?P<proj_id>\d+)/scenario/results/request_systen_costs_table/(?P<scen_id>\d+)?$", |
| 76 | + r"^project/(?P<proj_id>\d+)/scenario/results/request_systen_costs_table/(?P<scen_id>\d+)?/$", |
73 | 77 | request_system_costs_table, |
74 | 78 | name="request_system_costs_table", |
75 | 79 | ), |
76 | 80 | re_path( |
77 | | - r"^project/(?P<proj_id>\d+)/scenario/results/update-selected-single-scenario/(?P<scen_id>\d+)?$", |
| 81 | + r"^project/(?P<proj_id>\d+)/scenario/results/update-selected-single-scenario/(?P<scen_id>\d+)?/$", |
78 | 82 | update_selected_single_scenario, |
79 | 83 | name="update_selected_single_scenario", |
80 | 84 | ), |
81 | 85 | re_path( |
82 | | - r"^project/(?P<proj_id>\d+)/scenario/results/update-selected-multi-scenarios$", |
| 86 | + r"^project/(?P<proj_id>\d+)/scenario/results/update-selected-multi-scenarios/$", |
83 | 87 | update_selected_multi_scenarios, |
84 | 88 | name="update_selected_multi_scenarios", |
85 | 89 | ), |
86 | 90 | re_path( |
87 | | - r"^project/(?P<proj_id>\d+)/scenario/results/request_timeseries/(?P<scen_id>\d+)?$", |
| 91 | + r"^project/(?P<proj_id>\d+)/scenario/results/request_timeseries/(?P<scen_id>\d+)?/$", |
88 | 92 | scenario_visualize_timeseries, |
89 | 93 | name="scenario_visualize_timeseries", |
90 | 94 | ), |
91 | 95 | re_path( |
92 | | - r"^scenario/results/request_stacked_timeseries/(?P<scen_id>\d+)?$", |
| 96 | + r"^scenario/results/request_stacked_timeseries/(?P<scen_id>\d+)?/$", |
93 | 97 | scenario_visualize_stacked_timeseries, |
94 | 98 | name="scenario_visualize_stacked_timeseries", |
95 | 99 | ), |
96 | 100 | re_path( |
97 | | - r"^scenario/results/request_sankey/(?P<scen_id>\d+)?$", |
| 101 | + r"^scenario/results/request_sankey/(?P<scen_id>\d+)?/$", |
98 | 102 | scenario_visualize_sankey, |
99 | 103 | name="scenario_visualize_sankey", |
100 | 104 | ), |
101 | 105 | re_path( |
102 | | - r"^scenario/results/request_sankey/(?P<scen_id>\d+)?(/(?P<ts>\d+))?$", |
| 106 | + r"^scenario/results/request_sankey/(?P<scen_id>\d+)?(/(?P<ts>\d+))?/$", |
103 | 107 | scenario_visualize_sankey, |
104 | 108 | name="scenario_visualize_sankey", |
105 | 109 | ), |
106 | 110 | re_path( |
107 | | - r"^project/(?P<proj_id>\d+)/scenario/results/request-capacities/(?P<scen_id>\d+)?$", |
| 111 | + r"^project/(?P<proj_id>\d+)/scenario/results/request-capacities/(?P<scen_id>\d+)?/$", |
108 | 112 | scenario_visualize_capacities, |
109 | 113 | name="scenario_visualize_capacities", |
110 | 114 | ), |
111 | 115 | re_path( |
112 | | - r"^project/(?P<proj_id>\d+)/scenario/results/request-costs/(?P<scen_id>\d+)?$", |
| 116 | + r"^project/(?P<proj_id>\d+)/scenario/results/request-costs/(?P<scen_id>\d+)?/$", |
113 | 117 | scenario_visualize_costs, |
114 | 118 | name="scenario_visualize_costs", |
115 | 119 | ), |
116 | 120 | path( |
117 | | - "scenario/results/download_scalars/<int:scen_id>", |
| 121 | + "scenario/results/download_scalars/<int:scen_id>/", |
118 | 122 | download_scalar_results, |
119 | 123 | name="download_scalar_results", |
120 | 124 | ), |
121 | 125 | path( |
122 | | - "scenario/results/download_costs/<int:scen_id>", |
| 126 | + "scenario/results/download_costs/<int:scen_id>/", |
123 | 127 | download_cost_results, |
124 | 128 | name="download_cost_results", |
125 | 129 | ), |
126 | 130 | path( |
127 | | - "scenario/results/download_timeseries/<int:scen_id>", |
| 131 | + "scenario/results/download_timeseries/<int:scen_id>/", |
128 | 132 | download_timeseries_results, |
129 | 133 | name="download_timeseries_results", |
130 | 134 | ), |
131 | 135 | path( |
132 | | - "project/<int:proj_id>/scenario/results/download_timeseries", |
| 136 | + "project/<int:proj_id>/scenario/results/download_timeseries/", |
133 | 137 | redirect_download_timeseries_results, |
134 | 138 | name="redirect_download_timeseries_results", |
135 | 139 | ), |
136 | 140 | path( |
137 | | - "project/<int:proj_id>/scenario/results/add_graph", |
| 141 | + "project/<int:proj_id>/scenario/results/add_graph/", |
138 | 142 | report_create_item, |
139 | 143 | name="report_create_item", |
140 | 144 | ), |
141 | 145 | path( |
142 | | - "project/<int:proj_id>/scenario/results/delete_graph", |
| 146 | + "project/<int:proj_id>/scenario/results/delete_graph/", |
143 | 147 | report_delete_item, |
144 | 148 | name="report_delete_item", |
145 | 149 | ), |
146 | 150 | path( |
147 | | - "ajax/get-graph-parameters-form/<int:proj_id>", |
| 151 | + "ajax/get-graph-parameters-form/<int:proj_id>/", |
148 | 152 | ajax_get_graph_parameters_form, |
149 | 153 | name="ajax_get_graph_parameters_form", |
150 | 154 | ), |
|
0 commit comments