filter_raw_char_data now associates star data
This commit is contained in:
parent
b60e632e80
commit
f72d1d4aea
1 changed files with 9 additions and 3 deletions
|
@ -49,6 +49,12 @@ for key, entry in raw_json.items():
|
|||
op_name = entry["appellation"]
|
||||
char_data[op_name] = parsed_data
|
||||
|
||||
|
||||
data = {
|
||||
"name": op_name,
|
||||
"stars": parsed_data["stars"]
|
||||
}
|
||||
|
||||
if parsed_data["recruitment"] == 2:
|
||||
for tag in entry["tags"]:
|
||||
if tags[tag] not in en_recruitable:
|
||||
|
@ -56,13 +62,13 @@ for key, entry in raw_json.items():
|
|||
if tags[tag] not in cn_recruitable:
|
||||
cn_recruitable[tags[tag]] = []
|
||||
|
||||
en_recruitable[tags[tag]].append(op_name)
|
||||
cn_recruitable[tags[tag]].append(op_name)
|
||||
en_recruitable[tags[tag]].append(data)
|
||||
cn_recruitable[tags[tag]].append(data)
|
||||
elif parsed_data["recruitment"] == 1:
|
||||
for tag in entry["tags"]:
|
||||
if tags[tag] not in cn_recruitable:
|
||||
cn_recruitable[tags[tag]] = []
|
||||
cn_recruitable[tags[tag]].append(op_name)
|
||||
cn_recruitable[tags[tag]].append(data)
|
||||
|
||||
project_root = sys.argv[1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue