diff --git a/calculator_of_Onmyoji/convert_json2xls.py b/calculator_of_Onmyoji/convert_json2xls.py index c8e2f1f..ba34178 100644 --- a/calculator_of_Onmyoji/convert_json2xls.py +++ b/calculator_of_Onmyoji/convert_json2xls.py @@ -4,8 +4,8 @@ import os import sys -import load_data -import write_data +from calculator_of_Onmyoji import load_data +from calculator_of_Onmyoji import write_data def get_json_files(): diff --git a/calculator_of_Onmyoji/load_data.py b/calculator_of_Onmyoji/load_data.py index ba3ef6b..9e47091 100644 --- a/calculator_of_Onmyoji/load_data.py +++ b/calculator_of_Onmyoji/load_data.py @@ -126,6 +126,8 @@ def sep_mitama_by_loc(mitama_data): for d_k, d_v in mitama_data.items(): loc = d_v[u'位置'] + if loc not in range(1, 6): + print('Mitama location must be 1 to 6, please chech you data.') mitama_loc_data[loc].append({d_k: d_v}) return mitama_loc_data