Skip to content

Commit b3439a4

Browse files
k
1 parent 712bbc4 commit b3439a4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

api/binaryhistory.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ def post(self):
2727
post.create()
2828
# Return response to the client in JSON format, converting Python dictionaries to JSON format
2929
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-
4030

4131
def put(self):
4232
# Obtain the request data

0 commit comments

Comments
 (0)