Skip to content

Commit d54fba1

Browse files
committed
fix ruff
1 parent d524e80 commit d54fba1

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

routers/website/leads.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ async def submit_call_me(
5454

5555
submission, form_errors = CallMeSubmission.from_form(**form_values)
5656
if submission is None:
57-
first_error = next(iter(form_errors.values()), "Please check the form and try again.")
57+
first_error = next(
58+
iter(form_errors.values()), "Please check the form and try again."
59+
)
5860
response = RedirectResponse(
5961
url=str(request.url_for("read_home")) + "#call-me",
6062
status_code=303,

utils/website/content.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class AgentCard(TypedDict):
5454
"Other",
5555
]
5656

57+
5758
def _labeled_options(
5859
labels: list[str],
5960
*,
@@ -276,7 +277,6 @@ def _labeled_options(
276277
"answer": (
277278
"Our agents don't guess beyond the information provided for them. They take the details, tell the customer the office will follow up and logs it as a lead in your dashboard. "
278279
),
279-
280280
},
281281
{
282282
"question": "Can the agents quote prices?",
@@ -309,7 +309,6 @@ def _labeled_options(
309309
"question": "What's the setup and cost?",
310310
"answer": (
311311
"Our team trains the AI agents on your business and service logic alongside you and mostly deliver within 2 days depending on the complexity. "
312-
313312
),
314313
},
315314
]

utils/website/notifications.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def notify_book_demo(submission: BookDemoSubmission) -> bool:
6060
technicians = _option_label(DEMO_TECHNICIAN_COUNTS, submission.technicians)
6161
phone_answerer = _option_label(DEMO_PHONE_ANSWERERS, submission.phone_answerer)
6262
if technicians:
63-
optional_rows += f"<tr><td><strong>Technicians</strong></td><td>{technicians}</td></tr>"
63+
optional_rows += (
64+
f"<tr><td><strong>Technicians</strong></td><td>{technicians}</td></tr>"
65+
)
6466
if phone_answerer:
6567
optional_rows += (
6668
f"<tr><td><strong>Who answers phones</strong></td>"

0 commit comments

Comments
 (0)