Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small patch 2023-12-24 #11

Merged
merged 2 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading