##// END OF EJS Templates
Added order statement to getting added posts
neko259 -
r379:6a06fe27 default
parent child Browse files
Show More
@@ -429,7 +429,9 b' def api_get_threaddiff(request, thread_i'
429 'updated': [],
429 'updated': [],
430 'last_update': None,
430 'last_update': None,
431 }
431 }
432 added_posts = Post.objects.filter(thread=thread, pub_time__gt=filter_time)
432 added_posts = Post.objects.filter(thread=thread,
433 pub_time__gt=filter_time)\
434 .order_by('pub_time')
433 updated_posts = Post.objects.filter(thread=thread,
435 updated_posts = Post.objects.filter(thread=thread,
434 pub_time__lt=filter_time,
436 pub_time__lt=filter_time,
435 last_edit_time__gt=filter_time)
437 last_edit_time__gt=filter_time)
General Comments 0
You need to be logged in to leave comments. Login now