Reverse story download order to enable fast-update
Port of 729aa31d869d8cff3cfdcc34d98d400db51ac3ec to v4-dev branch.
This commit is contained in:
parent
2d9acd9989
commit
7688bdce45
@ -708,7 +708,7 @@ class Story:
|
|||||||
|
|
||||||
def get_items(self) -> Iterator[StoryItem]:
|
def get_items(self) -> Iterator[StoryItem]:
|
||||||
"""Retrieve all items from a story."""
|
"""Retrieve all items from a story."""
|
||||||
yield from (StoryItem(self._context, item, self.owner_profile) for item in self._node['items'])
|
yield from (StoryItem(self._context, item, self.owner_profile) for item in reversed(self._node['items']))
|
||||||
|
|
||||||
|
|
||||||
JsonExportable = Union[Post, Profile, StoryItem]
|
JsonExportable = Union[Post, Profile, StoryItem]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user