switched docstring format to one-line-sphinx

This commit is contained in:
Lucas Jensen
2024-05-05 13:32:31 -07:00
parent ab0fae44f7
commit e1a29b398e
12 changed files with 300 additions and 243 deletions

View File

@@ -12,7 +12,6 @@ router = APIRouter(
@router.post("/", status_code=status.HTTP_201_CREATED)
async def post_message(contact: Contact):
"""Sends an email to the site owner with the provided name, email, and message."""
subject = f"New message from {contact.name}"
body = f"From: {contact.email}\n\n{contact.message}"
send_email(subject, body)