Skip to content

Docstring/PEP 257 fixes for the comments app #2820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions readthedocs/comments/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@


class DjangoStorage(StorageBackend):
"""
A Sphinx StorageBackend using Django.
"""

"""A Sphinx StorageBackend using Django."""

def get_metadata(self, docname, moderator=None):
ret_dict = {}
for node in DocumentNode.objects.filter(page=docname):
Expand Down
2 changes: 2 additions & 0 deletions readthedocs/comments/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def get_options(request):
def get_metadata(request):
"""
Check for get_metadata

GET: page
"""
document = request.GET.get('page', '')
Expand Down Expand Up @@ -108,6 +109,7 @@ def serve_file(request, file):
def has_node(request):
"""
Checks to see if a node exists.

GET: node_id - The node's ID to check
"""
node_id = request.GET.get('node_id', '')
Expand Down