Fix auto detection of forks. #1738

This commit is contained in:
Clinton Hall 2020-04-23 10:07:16 +12:00 committed by GitHub
commit 850ba6dcea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View file

@ -41,6 +41,7 @@ def api_check(r, params, rem_params):
optional_parameters = json_data['optionalParameters'].keys()
# Find excess parameters
excess_parameters = set(params).difference(optional_parameters)
excess_parameters.remove('cmd') # Don't remove cmd from api params
logger.debug('Removing excess parameters: {}'.format(sorted(excess_parameters)))
rem_params.extend(excess_parameters)
return rem_params, True