Skip to content

Commit

Permalink
Merge pull request #550 from Berserker66/patch-1
Browse files Browse the repository at this point in the history
rename db to database in example
  • Loading branch information
coleifer committed Aug 21, 2020
2 parents ef9fbce + 4032ec6 commit 2d437ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/shared_resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ context-manager API, and automatically wraps the task within the given context:
.. code-block:: python
# Same as previous example, except we can omit the "with db" block.
@huey.context_task(db)
@huey.context_task(database)
def check_comment_spam(comment_id):
comment = Comment.get(Comment.id == comment_id)
Expand Down

0 comments on commit 2d437ef

Please sign in to comment.