Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Bug fix: mitama loc should convert to int
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajunsu committed Sep 1, 2018
1 parent 90b7d49 commit 33c840c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calculator_of_Onmyoji/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def sep_mitama_by_loc(mitama_data):
4: [], 5: [], 6: []}

for d_k, d_v in mitama_data.items():
loc = d_v[u'位置']
loc = int(d_v[u'位置'])
if loc not in range(1, 6):
print('Mitama location must be 1 to 6, please chech you data.')
print('Mitama location must be 1 to 6, please check you data.')
mitama_loc_data[loc].append({d_k: d_v})

return mitama_loc_data
Expand Down

0 comments on commit 33c840c

Please sign in to comment.