Commit 4be0f1fa authored by nanahira's avatar nanahira

simplify

parent a7fa3b42
...@@ -345,9 +345,6 @@ def route_api_preview(): ...@@ -345,9 +345,6 @@ def route_api_preview():
abort(400) abort(400)
song_id = int(song_id) song_id = int(song_id)
if not song_id:
abort(400)
song = db.songs.find_one({'id': song_id}) song = db.songs.find_one({'id': song_id})
if not song: if not song:
abort(400) abort(400)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment