Skip to content
Snippets Groups Projects
Commit ca2ef6fb authored by vlorentz's avatar vlorentz
Browse files

Remove unused 'get_traversal' method

parent fcca8787
No related branches found
No related tags found
No related merge requests found
......@@ -141,13 +141,6 @@ class GraphView(aiohttp.web.View):
else:
return s
def get_traversal(self):
"""Validate HTTP query parameter `traversal`, i.e., visit order"""
s = self.request.query.get("traversal", "dfs")
if s not in ("bfs", "dfs"):
raise aiohttp.web.HTTPBadRequest(text=f"invalid traversal order: {s}")
return s
def get_limit(self):
"""Validate HTTP query parameter `limit`, i.e., number of results"""
s = self.request.query.get("limit", "0")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment