Show More
@@ -429,7 +429,7 b' def api_get_threaddiff(request, thread_i' | |||||
429 | pub_time__gt=filter_time)\ |
|
429 | pub_time__gt=filter_time)\ | |
430 | .order_by('pub_time') |
|
430 | .order_by('pub_time') | |
431 | updated_posts = Post.objects.filter(thread=thread, |
|
431 | updated_posts = Post.objects.filter(thread=thread, | |
432 | pub_time__lt=filter_time, |
|
432 | pub_time__lte=filter_time, | |
433 | last_edit_time__gt=filter_time) |
|
433 | last_edit_time__gt=filter_time) | |
434 | for post in added_posts: |
|
434 | for post in added_posts: | |
435 | json_data['added'].append(get_post(request, post.id).content.strip()) |
|
435 | json_data['added'].append(get_post(request, post.id).content.strip()) | |
@@ -561,4 +561,4 b' def _remove_invalid_links(text):' | |||||
561 | def _datetime_to_epoch(datetime): |
|
561 | def _datetime_to_epoch(datetime): | |
562 | return int(time.mktime(timezone.localtime( |
|
562 | return int(time.mktime(timezone.localtime( | |
563 | datetime,timezone.get_current_timezone()).timetuple()) |
|
563 | datetime,timezone.get_current_timezone()).timetuple()) | |
564 | * 1000000 + datetime.microsecond) No newline at end of file |
|
564 | * 1000000 + datetime.microsecond) |
General Comments 0
You need to be logged in to leave comments.
Login now