|
|
@ -134,7 +134,7 @@ class Client:
|
|
|
|
self.load_more_if_needed()
|
|
|
|
self.load_more_if_needed()
|
|
|
|
|
|
|
|
|
|
|
|
def load_more_if_needed(self):
|
|
|
|
def load_more_if_needed(self):
|
|
|
|
# if len(self.loadedstories) < self.story_pos + self.stories_in_a_site:
|
|
|
|
if len(self.loadedstories) < self.story_pos + self.stories_in_a_site:
|
|
|
|
# load more
|
|
|
|
# load more
|
|
|
|
self.load_stories(self.story_pos, self.story_pos + self.stories_in_a_site)
|
|
|
|
self.load_stories(self.story_pos, self.story_pos + self.stories_in_a_site)
|
|
|
|
|
|
|
|
|
|
|
@ -156,7 +156,7 @@ class Client:
|
|
|
|
#self.loadedstories = []
|
|
|
|
#self.loadedstories = []
|
|
|
|
self.story_pos = 0
|
|
|
|
self.story_pos = 0
|
|
|
|
self.cursor_pos = 0
|
|
|
|
self.cursor_pos = 0
|
|
|
|
self.load_more_if_needed()
|
|
|
|
self.load_stories(self.cursor_pos, self.cursor_pos + self.stories_in_a_site)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|