Skip to content

Commit c60338a

Browse files
committed
Doc: Fix grammar
1 parent 15e4c13 commit c60338a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cron_jobs_in_flask.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ADMINS=
5959
With the configurations in place, we can now create a function that will be responsible for sending emails. All the codes can be in an `email` module.
6060

6161
```python
62-
# email.py
62+
# app/email.py
6363

6464
from flask_mail import Message
6565
from app import mail
@@ -81,17 +81,17 @@ def send_email(subject, sender, recipients, text_body, html_body):
8181

8282
```
8383

84-
The helper function `send_email()` is a generic way of sending emails. It will be used below when we want to send actual emails. The entire email feature is added as a thread to ensure that the flask application does not slow down due to the execution of this function. Typically, sending emails will take a few seconds to complete.
84+
The helper function `send_email()` is a generic way of sending emails. It will be used below when we want to send actual emails. The entire email feature is added as a thread to ensure that the flask application does not slow down due to the execution of this function. Typically, sending an email takes a few seconds to complete.
8585

8686

8787
## Creating Tasks
8888

89-
Now that email support is in place, we can create a task that we can schedule to happen at period intervals.
89+
Now that email support is in place, we can create a task that we can schedule to happen at periodic intervals.
9090

9191

9292
### Updating the Database To Support Cronjobs
9393

94-
A user's model could define only their email address. All that an application accepts is a user's email address.
94+
A user's model could define only their email address. All that this application accepts is a user's email address.
9595

9696
```python
9797
# app/models.py

0 commit comments

Comments
 (0)