mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-11 16:52:25 +03:00
Fix if to elif
This commit is contained in:
parent
c84ceebb68
commit
4b8db68d5a
|
@ -62,7 +62,7 @@ class Command(CommandArguments):
|
||||||
schema_dict = {"data": schema.introspect()}
|
schema_dict = {"data": schema.introspect()}
|
||||||
if out == "-" or out == "-.json":
|
if out == "-" or out == "-.json":
|
||||||
self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True))
|
self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True))
|
||||||
if out == "-.graphql":
|
elif out == "-.graphql":
|
||||||
print(print_schema(schema))
|
print(print_schema(schema))
|
||||||
else:
|
else:
|
||||||
# Determine format
|
# Determine format
|
||||||
|
|
Loading…
Reference in New Issue
Block a user