Skip to content

Commit

Permalink
fix: Mastodon export was only exporting first page (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored Mar 9, 2024
2 parents 239a417 + 0f79f12 commit 879ea3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions geotribu_cli/social/mastodon_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ def export_data(
if dest_path_lists is not None or dest_path_lists_only_accounts is not None:
try:
dico_listes = {
liste.get("title"): self.list_accounts(id=liste.get("id"))
liste.get("title"): self.fetch_remaining(
self.list_accounts(id=liste.get("id"))
)
for liste in self.lists()
}
except Exception as err:
Expand All @@ -249,7 +251,9 @@ def export_data(
# récupération des comptes suivis
if dest_path_following_accounts is not None:
try:
masto_following_accounts = self.account_following(id=self.me())
masto_following_accounts = self.fetch_remaining(
self.account_following(id=self.me())
)
except Exception as err:
logger.critical(
"La récupération des comptes suivis a échoué. L'export est "
Expand Down

0 comments on commit 879ea3c

Please sign in to comment.