We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 712bbc4 commit b3439a4Copy full SHA for b3439a4
api/binaryhistory.py
@@ -27,16 +27,6 @@ def post(self):
27
post.create()
28
# Return response to the client in JSON format, converting Python dictionaries to JSON format
29
return jsonify(post.read())
30
-
31
32
- def get(self):
33
- # Find all the posts by the current user
34
- posts = BinaryHistory.query.filter(BinaryHistory._user_id == current_user.id).all()
35
- # Prepare a JSON list of all the posts, uses for loop shortcut called list comprehension
36
- json_ready = [post.read() for post in posts]
37
- # Return a JSON list, converting Python dictionaries to JSON format
38
- return jsonify(json_ready)
39
40
41
def put(self):
42
# Obtain the request data
0 commit comments