Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Mastodon export was only exporting first page #181

Merged
merged 2 commits into from
Mar 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading