Skip to content

Commit 85fcc9e

Browse files
fix async examples
1 parent 9dc843e commit 85fcc9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/async/completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Person(AsyncDocument):
5454
name = Text(fields={"keyword": Keyword()})
5555
popularity = Long()
5656

57-
# copletion field with a custom analyzer
57+
# completion field with a custom analyzer
5858
suggest = Completion(analyzer=ascii_fold)
5959

6060
def clean(self):

examples/async/parent_child.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def search(cls, **kwargs):
190190

191191
async def get_question(self):
192192
# cache question in self.meta
193-
# any attributes set on self would be interpretted as fields
193+
# any attributes set on self would be interpreted as fields
194194
if "question" not in self.meta:
195195
self.meta.question = await Question.get(
196196
id=self.question_answer.parent, index=self.meta.index

0 commit comments

Comments
 (0)