Skip to content

Commit

Permalink
character_all.json too big fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop committed Dec 31, 2023
1 parent c087356 commit da60c76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data
Submodule data updated 53 files
+14 −0 character/npc/Aoi.json
+14 −0 character/npc/Ayumu.json
+14 −0 character/npc/Beatrice.json
+14 −0 character/npc/Golconde.json
+14 −0 character/npc/GscPres.json
+14 −0 character/npc/Ibuki.json
+14 −0 character/npc/Kaya.json
+14 −0 character/npc/Kisaki.json
+14 −0 character/npc/Kurumi.json
+14 −0 character/npc/Kuzunoha.json
+14 −0 character/npc/Maestro.json
+14 −0 character/npc/Makoto.json
+14 −0 character/npc/MemberOfLaborParty.json
+14 −0 character/npc/MemberOfPublicPeace.json
+14 −0 character/npc/MemberOfSisterhood.json
+14 −0 character/npc/MemberOfXuanlong.json
+14 −0 character/npc/Niko.json
+14 −0 character/npc/Niya.json
+14 −0 character/npc/Otogi.json
+14 −0 character/npc/PMC_General.json
+14 −0 character/npc/PMC_President.json
+14 −0 character/npc/PMC_Solider.json
+14 −0 character/npc/PMC_Specialist.json
+14 −0 character/npc/Seia.json
+14 −0 character/npc/ShirokoTerror.json
+14 −0 character/npc/Sora.json
+14 −0 character/npc/StudentOfTrinity.json
+14 −0 character/npc/StudentOfValkyrie.json
+14 −0 character/npc/Yukino.json
+56 −1 i18n/en/npc.json
+22 −1 i18n/jp/npc.json
+16 −16 i18n/zh_cn_cn/story_bond.json
+16 −16 i18n/zh_cn_jp/story_bond.json
+56 −1 i18n/zh_cn_tw/npc.json
+16 −16 i18n/zh_cn_tw/story_bond.json
+16 −16 i18n/zh_tw/story_bond.json
+130 −0 main/story/main/finalS1/1/01.json
+452 −0 main/story/main/finalS1/1/02.json
+330 −0 main/story/main/finalS1/1/03.json
+404 −0 main/story/main/finalS1/1/04.json
+180 −0 main/story/main/finalS1/1/05.json
+248 −0 main/story/main/finalS1/1/06.json
+503 −0 main/story/main/finalS1/1/07.json
+391 −0 main/story/main/finalS1/1/08.json
+413 −0 main/story/main/finalS1/1/09.json
+252 −0 main/story/main/finalS1/1/10.json
+119 −0 main/story/main/finalS1/1/11.json
+213 −0 main/story/main/finalS1/1/12.json
+447 −0 main/story/main/finalS1/1/13.json
+249 −0 main/story/main/finalS1/1/14.json
+525 −0 main/story/main/finalS1/1/15.json
+0 −0 main/story/main/finalS1/1/_all.json
+1 −1 main/story/main/finalS1/_all.json
10 changes: 8 additions & 2 deletions data_model/actual_data/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,14 @@ def to_json_basic(self):
"collection_bg": self.collection_bg,
"collection_texture": str(self._id) # deprecated by SchaleDB
},
"birthday": self.birthday.to_json_basic(),
"school": self.school_long.to_json_basic(),
"birthday": {
"localized": self.birthday_localized.to_json(),
"normalized": self.birthday.to_json()
},
"school": {
"short": self.school.to_json(),
"long": self.school_long.to_json()
},
"school_id": self.school_id,
"club": self.club.to_json_basic(),
"age": self.age.to_json_basic(),
Expand Down
2 changes: 1 addition & 1 deletion data_model/loader/folder_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def to_json_basic(self):

# If the filetype is FILE_DIR_STUDENT_SINGLE or something
try:
d["student"] = self.student.to_json()
d["student"] = self.student.to_json_basic()
except Exception:
pass
return d
Expand Down

0 comments on commit da60c76

Please sign in to comment.