Skip to content

Commit 1b23d47

Browse files
Changing what was reuqested
1 parent 835345f commit 1b23d47

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

readthedocs/search/tasks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def record_search_query(project_slug, version_slug, query, total_results, time_s
159159
partial_query_qs = SearchQuery.objects.filter(
160160
project__slug=project_slug,
161161
version__slug=version_slug,
162-
created__gte=before_10_sec,
162+
modified__gte=before_10_sec,
163163
).order_by('-modified')
164164

165165
# check if partial query exists,
@@ -210,5 +210,3 @@ def record_search_query(project_slug, version_slug, query, total_results, time_s
210210
version=version,
211211
query=query,
212212
)
213-
obj.modified = time
214-
obj.save()

0 commit comments

Comments
 (0)