BOM-296
Fixing python3
This commit is contained in:
@@ -676,7 +676,7 @@ def get_comment_list(request, thread_id, endorsed, page, page_size, requested_fi
|
||||
# behavior and return a PageNotFoundError in that case
|
||||
if not responses and page != 1:
|
||||
raise PageNotFoundError("Page not found (No results on this page).")
|
||||
num_pages = (resp_total + page_size - 1) / page_size if resp_total else 1
|
||||
num_pages = (resp_total + page_size - 1) // page_size if resp_total else 1
|
||||
|
||||
results = _serialize_discussion_entities(request, context, responses, requested_fields, DiscussionEntity.comment)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user