@@ -410,19 +410,19 @@ async def import_browser_bookmarks(file: str | pathlib.Path):
410410
411411
412412async def import_f95_bookmarks ():
413- globals .refresh_total = 2
413+ globals .refresh_total = 1
414414 if not await assert_login ():
415415 return
416416 globals .refresh_progress = 1
417417 offset = 0
418418 threads = []
419419 while True :
420420 globals .refresh_total += 1
421- globals .refresh_progress += 1
422421 res = await fetch ("GET" , bookmarks_page .format (offset = offset ))
423422 raise_f95zone_error (res )
424423 html = parser .html (res )
425424 bookmarks = html .find (parser .is_class ("p-body-pageContent" )).find (parser .is_class ("listPlain" ))
425+ globals .refresh_progress += 1
426426 if not bookmarks :
427427 break
428428 for title in bookmarks .find_all (parser .is_class ("contentRow-title" )):
@@ -439,19 +439,19 @@ async def import_f95_bookmarks():
439439
440440
441441async def import_f95_watched_threads ():
442- globals .refresh_total = 2
442+ globals .refresh_total = 1
443443 if not await assert_login ():
444444 return
445445 globals .refresh_progress = 1
446446 page = 1
447447 threads = []
448448 while True :
449449 globals .refresh_total += 1
450- globals .refresh_progress += 1
451450 res = await fetch ("GET" , watched_page .format (page = page ))
452451 raise_f95zone_error (res )
453452 html = parser .html (res )
454453 watched = html .find (parser .is_class ("p-body-pageContent" )).find (parser .is_class ("structItemContainer" ))
454+ globals .refresh_progress += 1
455455 if not watched :
456456 break
457457 page += 1
@@ -722,6 +722,7 @@ async def check_notifs(login=False):
722722 MsgBox .error ,
723723 more = error .traceback ()
724724 )
725+ globals .refresh_progress += 1
725726 if alerts != 0 and inbox != 0 :
726727 msg = (
727728 f"You have { alerts + inbox } unread notifications.\n "
0 commit comments