diff --git a/patch-tracking/patch_tracking/api/tracking.py b/patch-tracking/patch_tracking/api/tracking.py index a06a9c30637216d1d28c37b1322cecc7e25b7f94..8ecd27f2fdecb49b5ef5e7e4b6e25f627c642f96 100644 --- a/patch-tracking/patch_tracking/api/tracking.py +++ b/patch-tracking/patch_tracking/api/tracking.py @@ -30,12 +30,14 @@ def delete(): try: if "branch" in keys: - if Tracking.query.filter(Tracking.repo == input_params['repo'], Tracking.branch == input_params['branch']).first(): + if Tracking.query.filter(Tracking.repo == input_params['repo'], + Tracking.branch == input_params['branch']).first(): delete_tracking(input_params['repo'], input_params['branch']) logger.info('Delete tracking repo: %s, branch: %s', input_params['repo'], input_params['branch']) return ResponseCode.ret_message(code=ResponseCode.SUCCESS) else: - logger.info('Delete tracking repo: %s, branch: %s not found.', input_params['repo'], input_params['branch']) + logger.info('Delete tracking repo: %s, branch: %s not found.', input_params['repo'], + input_params['branch']) return ResponseCode.ret_message(code=ResponseCode.DELETE_DB_NOT_FOUND) else: if Tracking.query.filter(Tracking.repo == input_params['repo']).first():