Skip to content

Commit

Permalink
PEP formatting compliance fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
profcturner committed Jul 9, 2024
1 parent e934d8d commit ef64663
Showing 1 changed file with 30 additions and 17 deletions.
47 changes: 30 additions & 17 deletions WAM/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,49 @@
re_path(r'^activities/(?P<staff_id>[0-9]+)$', views.activities, name='activities'),
re_path(r'^activities/index/$', ActivityListView.as_view(), name='activities_index'),
re_path(r'^activities/create/$', CreateActivityView.as_view(), name='create activity'),
re_path(r'^activities/update/(?P<pk>[0-9]+)$$', UpdateActivityView.as_view(), name='update activity'),
re_path(r'^activities/update/(?P<pk>[0-9]+)$', UpdateActivityView.as_view(), name='update activity'),
re_path(r'^external/$', views.external_index, name='external_index'),
re_path(r'^external/modules/index/(?P<semesters>[0-9,]*)$', views.external_modules_index, name='external_modules_index'),
re_path(r'^generators/index/$', views.generators_index, name='generators_index'),
re_path(r'^generators/generate_activities/(?P<generator_id>[0-9]+)$', views.generators_generate_activities, name='generators_generate_activities'),
re_path(r'^tasks/index/$', views.tasks_index, name='tasks_index'),
re_path(r'^tasks/archived/index/$', views.archived_tasks_index, name='archived_tasks_index'),
re_path(r'^tasks/create/$', CreateTaskView.as_view(), name='create task'),
re_path(r'^tasks/update/(?P<pk>[0-9]+)$', UpdateTaskView.as_view(), name='update task'),
re_path(r'^tasks/completion/(?P<task_id>[0-9]+)/(?P<staff_id>[0-9]+)$', views.tasks_completion, name='tasks_completion'),
re_path(r'^external/modules/index/(?P<semesters>[0-9,]*)$', views.external_modules_index,
name='external_modules_index'),
re_path(r'^generators/index/$', views.generators_index,
name='generators_index'),
re_path(r'^generators/generate_activities/(?P<generator_id>[0-9]+)$', views.generators_generate_activities,
name='generators_generate_activities'),
re_path(r'^tasks/index/$', views.tasks_index,
name='tasks_index'),
re_path(r'^tasks/archived/index/$', views.archived_tasks_index,
name='archived_tasks_index'),
re_path(r'^tasks/create/$', CreateTaskView.as_view(),
name='create task'),
re_path(r'^tasks/update/(?P<pk>[0-9]+)$', UpdateTaskView.as_view(),
name='update task'),
re_path(r'^tasks/completion/(?P<task_id>[0-9]+)/(?P<staff_id>[0-9]+)$', views.tasks_completion,
name='tasks_completion'),
re_path(r'^tasks/detail/(?P<task_id>[0-9]+)$', views.tasks_details, name='tasks_details'),
re_path(r'^tasks/bystaff/(?P<staff_id>[0-9]+)$', views.tasks_bystaff, name='tasks_bystaff'),
re_path(r'^modules/index/(?P<semesters>[0-9,]*)$', views.modules_index, name='modules_index'),
re_path(r'^modules/details/(?P<module_id>[0-9]+)$', views.modules_details, name='modules_details'),
re_path(r'^modules/add_assessment_resource/(?P<module_id>[0-9]+)$', views.add_assessment_resource, name='add_assessment_resource'),
re_path(r'^modules/download_assessment_resource/(?P<resource_id>[0-9]+)$', views.download_assessment_resource, name='download_assessment_resource'),
re_path(r'^modules/delete_assessment_resource/(?P<resource_id>[0-9]+)(?P<confirm>/confirm)?$', views.delete_assessment_resource,
name='delete_assessment_resource'),
re_path(r'^modules/add_assessment_resource/(?P<module_id>[0-9]+)$', views.add_assessment_resource,
name='add_assessment_resource'),
re_path(r'^modules/download_assessment_resource/(?P<resource_id>[0-9]+)$', views.download_assessment_resource,
name='download_assessment_resource'),
re_path(r'^modules/delete_assessment_resource/(?P<resource_id>[0-9]+)(?P<confirm>/confirm)?$',
views.delete_assessment_resource, name='delete_assessment_resource'),
re_path(r'^modules/add_assessment_sign_off/(?P<module_id>[0-9]+)$', views.add_assessment_sign_off,
name='add_assessment_sign_off'),
re_path(r'^modules/allocations/(?P<package_id>[0-9]+)/(?P<module_id>[0-9]+)$', views.module_staff_allocation, name='module_staff_allocation'),
name='add_assessment_sign_off'),
re_path(r'^modules/allocations/(?P<package_id>[0-9]+)/(?P<module_id>[0-9]+)$', views.module_staff_allocation,
name='module_staff_allocation'),
re_path(r'^modules/create/$', CreateModuleView.as_view(), name='create module'),
re_path(r'^modules/update/(?P<pk>[0-9]+)$', UpdateModuleView.as_view(), name='update module'),
re_path(r'^programmes/index/$', ProgrammeList.as_view(), name='programmes_index'),
re_path(r'^programmes/create/$', CreateProgrammeView.as_view(), name='create programme'),
re_path(r'^programmes/update/(?P<pk>[0-9]+)$', UpdateProgrammeView.as_view(), name='update programme'),
re_path(r'^projects/index/$', views.projects_index, name='projects_index'),
re_path(r'^projects/detail/(?P<project_id>[0-9]+)$', views.projects_details, name='projects_details'),
re_path(r'^projects/generate_activities/(?P<project_id>[0-9]+)$', views.projects_generate_activities, name='projects_generate_activities'),
re_path(r'^staff/allocation/(?P<package_id>[0-9]+)/(?P<staff_id>[0-9]+)$', views.staff_module_allocation, name='staff_module_allocation'),
re_path(r'^projects/generate_activities/(?P<project_id>[0-9]+)$', views.projects_generate_activities,
name='projects_generate_activities'),
re_path(r'^staff/allocation/(?P<package_id>[0-9]+)/(?P<staff_id>[0-9]+)$', views.staff_module_allocation,
name='staff_module_allocation'),
re_path(r'^forbidden/$', views.forbidden, name='forbidden'),
re_path(r'^logged_out/$', views.logged_out, name='logged out'),
re_path(r'^admin/doc/', include('django.contrib.admindocs.urls')),
Expand Down

0 comments on commit ef64663

Please sign in to comment.