Skip to content

Commit 4d38942

Browse files
committed
Removes commented out code in resources.py
1 parent cc1f144 commit 4d38942

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

app/api/resources.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
from flask import Blueprint
22
from flask import request, jsonify
33

4-
# from app.models import Artist, db
5-
# from .errors import unprocessable_entity, error_message
6-
# from .schemas import artist_schema
74
from .errors import error_message
85

96
api = Blueprint('api', __name__)
@@ -35,19 +32,6 @@ def handle_artists():
3532
handle_artists handles /artists route
3633
returns list of artists
3734
"""
38-
# if request.method == 'POST':
39-
# artist, errors = artist_schema.load(request.form, session=db.session)
40-
# if errors:
41-
# return unprocessable_entity(errors)
42-
43-
# db.session.add(artist)
44-
# db.session.commit()
45-
46-
# return jsonify(artist_schema.dump(artist).data)
47-
48-
# artists = Artist.query.order_by('id').items
49-
50-
# return jsonify(artist_schema.dump(artists, many=True).data)
5135
if request.method == 'POST':
5236
return 'ok'
5337

0 commit comments

Comments
 (0)