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

Added account_migration for figshare #186

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
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ def get_root_folder_for_provider(node_settings, service_name):
return f"collection:{node_settings.list_id}"
case "boa":
return None
case "figshare":
folder_type = (
node_settings.folder_path
if node_settings.folder_path == "project"
else "article"
)
return f"{folder_type}/{node_settings.folder_id}".replace(
"dataset", "article"
)


class Command(BaseCommand):
Expand Down
Loading