Fix not fetching all articles on initial sync.

sqlite
VikingKong 3 years ago
parent cef3a76618
commit f51be81361

@ -28,7 +28,7 @@ class Fetcher:
def articlesFromCategory(self, category, count=0, timestamp=0, number=0): def articlesFromCategory(self, category, count=0, timestamp=0, number=0):
if number == 0: if number == 0:
response = httpx.get(self.URL+"/reader/api/0/stream/contents?n="+count+"&s="+category, headers=self.headers) response = httpx.get(self.URL+"/reader/api/0/stream/contents?n=1000"+"&s="+category, headers=self.headers)
else: else:
response = httpx.get(self.URL+"/reader/api/0/stream/contents?ot="+timestamp+"&s=" response = httpx.get(self.URL+"/reader/api/0/stream/contents?ot="+timestamp+"&s="
+ category, headers=self.headers) + category, headers=self.headers)

@ -62,7 +62,6 @@ class LeftPane(urwid.ListBox):
if self.isCategoryView: if self.isCategoryView:
try: try:
self.currentCategory = focus_widget.attr_map[None][0] self.currentCategory = focus_widget.attr_map[None][0]
Utils.writeLog(focus_widget.attr_map)
except BaseException: except BaseException:
self.currentCategory = None self.currentCategory = None

Loading…
Cancel
Save