Skip to content

Commit 58ecb39

Browse files
committed
add comment
1 parent 9200121 commit 58ecb39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/search/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ def record_search_query(project_slug, version_slug, query, total_results, time):
160160
created__gte=before_10_sec,
161161
).order_by('-created')
162162

163+
# check if partial query exists,
164+
# if yes, then just update the object.
163165
for partial_query in partial_query_qs.iterator():
164166
if query.startswith(partial_query.query):
165167
partial_query.created = time

0 commit comments

Comments
 (0)