Skip to content

Commit

Permalink
Refactor Item module to snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 21, 2021
1 parent 6dcab81 commit 840931c
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 102 deletions.
2 changes: 1 addition & 1 deletion src/webqueue2api/api/resources/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ def get(self, queue: str, number: int) -> tuple:
tuple: Item as JSON and HTTP response code.
"""
try:
return (_Item(queue, number).toJson(), 200)
return (_Item(queue, number).to_json(), 200)
except ItemDoesNotExistError:
return ({"message": f"Item {queue}{number} not found."}, 404)
Loading

0 comments on commit 840931c

Please sign in to comment.