From 0babe482085d96f0b9c2bddc189e0f2df5a699d5 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 29 May 2025 12:56:31 +0930 Subject: [PATCH] chore: correct liniting errors ref: #776 --- app/access/urls_api.py | 6 ++++-- app/config_management/urls_api.py | 3 ++- app/core/urls_api.py | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/access/urls_api.py b/app/access/urls_api.py index fc347c0b..442a389b 100644 --- a/app/access/urls_api.py +++ b/app/access/urls_api.py @@ -73,12 +73,14 @@ router.register( ) router.register( - prefix = 'tenant/(?P[0-9]+)/team/(?P[0-9]+)/notes', viewset = team_notes.ViewSet, + prefix = 'tenant/(?P[0-9]+)/team/(?P[0-9]+)/notes', + viewset = team_notes.ViewSet, basename = '_api_v2_team_note' ) router.register( - prefix = 'access/tenant/(?P[0-9]+)/team/(?P[0-9]+)/user', viewset = team_user_v2.ViewSet, + prefix = 'access/tenant/(?P[0-9]+)/team/(?P[0-9]+)/user', + viewset = team_user_v2.ViewSet, basename = '_api_v2_organization_team_user' ) diff --git a/app/config_management/urls_api.py b/app/config_management/urls_api.py index 1c8f6cd9..610502b3 100644 --- a/app/config_management/urls_api.py +++ b/app/config_management/urls_api.py @@ -31,7 +31,8 @@ router.register( basename = '_api_v2_config_group_note' ) router.register( - prefix = 'group/(?P[0-9]+)/software', viewset = config_group_software_v2.ViewSet, + prefix = 'group/(?P[0-9]+)/software', + viewset = config_group_software_v2.ViewSet, basename = '_api_v2_config_group_software' ) diff --git a/app/core/urls_api.py b/app/core/urls_api.py index 9158165a..6b033af5 100644 --- a/app/core/urls_api.py +++ b/app/core/urls_api.py @@ -87,7 +87,8 @@ router.register( feature_flag = '2025-00006', basename = '_api_v2_ticket_comment_base_sub' ) router.register( - prefix=f'ticket/(?P[0-9]+)/(?P[{ticket_comment_names}]+)/(?P[0-9]+)/threads', + prefix=f'ticket/(?P[0-9]+)/(?P[{ticket_comment_names} \ + ]+)/(?P[0-9]+)/threads', viewset = ticket_comment.ViewSet, feature_flag = '2025-00006', basename = '_api_v2_ticket_comment_base_sub_thread' )