Fixing python3
This commit is contained in:
arbisoft
2019-08-29 16:58:25 +05:00
parent 2e92668e9e
commit 641ba0215a

View File

@@ -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)