Skip to content

Commit

Permalink
Merge pull request #11 from BA-OST-Index/dev
Browse files Browse the repository at this point in the history
Small patch
  • Loading branch information
sctop authored Dec 24, 2023
2 parents f610e0d + 85a5169 commit 0031539
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion data_model/actual_data/_story/story_pos.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class StoryPosMainSideShortOther(StoryPos):
due to their similarity in ordering (can be listed as `volume`,
`chapter`, `segment` with a total of 3 parts.)
"""
volume = Integer('volume')
chapter = Integer('chapter')
segment = Integer('segment')
_components = ["volume", "chapter", "segment"]
Expand Down
4 changes: 3 additions & 1 deletion data_model/actual_data/story.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def _get_instance_id(data: dict):
return "_".join(["BOND", *story_pos])

def _get_instance_offset(self, offset: int):
# TODO
return StoryInfo._get_instance_offset(self, offset)

def parent_data_to_json(self):
Expand All @@ -284,7 +285,8 @@ def to_json(self):

"part": self.part.to_json(),
"is_memory": self.is_memory,
"source": self.source.to_json_basic()
"source": self.source.to_json_basic(),
"interpage": self.get_interpage_data()
}

if self.is_memory:
Expand Down

0 comments on commit 0031539

Please sign in to comment.