Skip to content

Commit

Permalink
Improve: リファクタリング
Browse files Browse the repository at this point in the history
  • Loading branch information
kmatsura committed Dec 19, 2020
1 parent bf14102 commit 0c434f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cookpad_next_step_prediction/get_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ def get_title_and_category(conn):
cookpad_dataからレシピ名とそれに対応する手順を持ってくる。
"""
cur = conn.cursor()
category_id = 'c910ca8994e8f6953e0b85bbfc73f8305274886d'
sql = "SELECT r.title, st.memo, st.position FROM recipes r INNER JOIN steps st ON r.id = st.recipe_id;"
sql = "SELECT r.title, st.memo, st.position FROM recipes r INNER JOIN steps st ON r.id = st.recipe_id;" # レシピのタイトルと対応する手順をもってくる。
result = cur.execute(sql)
rows = cur.fetchall()
return result, rows
Expand Down

0 comments on commit 0c434f9

Please sign in to comment.