mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-11 04:07:57 +03:00
add saces for linter
This commit is contained in:
parent
6da95d72ea
commit
28cccb49f7
|
@ -281,8 +281,8 @@ class GraphQLView(View):
|
|||
def request_wants_html(cls, request):
|
||||
accepted = get_accepted_content_types(request)
|
||||
accepted_length = len(accepted)
|
||||
#the list will be ordered in preferred first - so we have to make
|
||||
#sure the most preferred gets the highest number
|
||||
# the list will be ordered in preferred first - so we have to make
|
||||
# sure the most preferred gets the highest number
|
||||
html_priority = accepted_length - accepted.index('text/html') if 'text/html' in accepted else 0
|
||||
json_priority = accepted_length - accepted.index('application/json') if 'application/json' in accepted else 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user