Skip to content

Commit

Permalink
chore(pre-commit): autofix run
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent a4dc810 commit 4688d21
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions scripts/crystal_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ def joins(self):
tables.append(
{
table.attrib["Alias"]: table.attrib["Name"],
"CommandText": Sqlize(table.find("Command").text).sql()
if table.attrib["Alias"] == "Command"
else None,
"CommandText": (
Sqlize(table.find("Command").text).sql()
if table.attrib["Alias"] == "Command"
else None
),
}
)

Expand Down Expand Up @@ -230,11 +232,15 @@ def sorts(self):
sort = []
for field in self.data_definition.find("SortFields").findall("SortField"):
# pylint: disable=W0106
sort.append(
Sqlize(field.attrib["Field"]).names()
+ " "
+ Sqlize(field.attrib["SortDirection"]).sorts()
) if "SortDirection" in field.attrib else ""
(
sort.append(
Sqlize(field.attrib["Field"]).names()
+ " "
+ Sqlize(field.attrib["SortDirection"]).sorts()
)
if "SortDirection" in field.attrib
else ""
)
return sort

def formulas(self):
Expand Down

0 comments on commit 4688d21

Please sign in to comment.