Skip to content

Commit 835345f

Browse files
Changing created to modified time
1 parent 0b2e1d5 commit 835345f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/search/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def record_search_query(project_slug, version_slug, query, total_results, time_s
160160
project__slug=project_slug,
161161
version__slug=version_slug,
162162
created__gte=before_10_sec,
163-
).order_by('-created')
163+
).order_by('-modified')
164164

165165
# check if partial query exists,
166166
# if yes, then just update the object.
@@ -210,5 +210,5 @@ def record_search_query(project_slug, version_slug, query, total_results, time_s
210210
version=version,
211211
query=query,
212212
)
213-
obj.created = time
213+
obj.modified = time
214214
obj.save()

0 commit comments

Comments
 (0)