Fix if to elif

This commit is contained in:
Leonardo Arroyo 2020-11-04 08:11:52 -03:00
parent c84ceebb68
commit 4b8db68d5a

View File

@ -62,7 +62,7 @@ class Command(CommandArguments):
schema_dict = {"data": schema.introspect()}
if out == "-" or out == "-.json":
self.stdout.write(json.dumps(schema_dict, indent=indent, sort_keys=True))
if out == "-.graphql":
elif out == "-.graphql":
print(print_schema(schema))
else:
# Determine format