Skip to content

Commit

Permalink
fix fix sql (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostmygithubaccount authored Mar 4, 2024
1 parent 431c0f3 commit d78d664
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ibis_birdbrain/tasks/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ def __call__(self, message: Message) -> Message:
data_description=database_attachment.description,
)

response_message = Email()
response_message = Email(
body="fix SQL called",
attachments=[CodeAttachment(language="sql", content=sql)],
to_address=message.from_address,
from_address=self.name,
)
return response_message

@staticmethod
Expand Down Expand Up @@ -227,6 +232,7 @@ def fix_text_to_sql(
return (
self._fix_text_to_sql(
text=text,
sql=sql,
error=error,
tables=tables,
data_description=data_description,
Expand Down

0 comments on commit d78d664

Please sign in to comment.