fix(python-nextgen): Date query params typo (#15395)

This commit is contained in:
Robert Schweizer 2023-05-03 09:17:51 +02:00 committed by GitHub
parent 4e8d41bd79
commit 0a4648f7a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ class {{classname}}(object):
{{^isDateTime}}
{{#isDate}}
if isinstance(_params['{{paramName}}'], datetime):
_query_parame.append(('{{baseName}}', _params['{{paramName}}'].strftime(self.api_client.configuration.date_format)))
_query_params.append(('{{baseName}}', _params['{{paramName}}'].strftime(self.api_client.configuration.date_format)))
else:
_query_params.append(('{{baseName}}', _params['{{paramName}}']))
{{/isDate}}

View File

@ -305,7 +305,7 @@ class QueryApi(object):
if _params.get('date_query') is not None: # noqa: E501
if isinstance(_params['date_query'], datetime):
_query_parame.append(('date_query', _params['date_query'].strftime(self.api_client.configuration.date_format)))
_query_params.append(('date_query', _params['date_query'].strftime(self.api_client.configuration.date_format)))
else:
_query_params.append(('date_query', _params['date_query']))