Skip to content

Commit

Permalink
Fixed start indent for QueryMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
BeatsuDev committed Jan 7, 2023
1 parent e023d3f commit 1f2c384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gqlrequests/query_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _create_method_head(self, indents: int = 0) -> str:
argument_list.append(f"{key}: {str(value).lower()}")
else:
argument_list.append(f"{key}: {value}")
return " " * indents + f"{self.method_name}({', '.join(argument_list)})"
return " " * (self.start_indent + indent) + f"{self.method_name}({', '.join(argument_list)})"

def _generate_query(self, indents: int = 4) -> str:
return f"{self._create_method_head(indents-4)} " + super()._generate_query(
Expand Down

0 comments on commit 1f2c384

Please sign in to comment.