Skip to content

Commit

Permalink
MCKIN-29165 - Discussion post deletion fix (openedx#2062)
Browse files Browse the repository at this point in the history
  • Loading branch information
naeem91 authored Jan 5, 2021
1 parent 4f535fe commit c58d465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/discussion/rest_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ def get_response_comments(request, comment_id, page, page_size, requested_fields
)

comments_count = len(response_comments)
num_pages = (comments_count + page_size - 1) / page_size if comments_count else 1
num_pages = (comments_count + page_size - 1) // page_size if comments_count else 1
paginator = DiscussionAPIPagination(request, page, num_pages, comments_count)
return paginator.get_paginated_response(results)
except CommentClientRequestError:
Expand Down

0 comments on commit c58d465

Please sign in to comment.