Skip to content

Commit 727e302

Browse files
committed
status should be CLOSED not CANCELLED. add Submission import back (its for the delete step).
1 parent 8510672 commit 727e302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorials/python/tutorial_scripts/submission_organizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
from synapseclient import Synapse
13-
from synapseclient.models import SubmissionBundle, SubmissionStatus
13+
from synapseclient.models import Submission, SubmissionBundle, SubmissionStatus
1414

1515
syn = Synapse()
1616
syn.login()
@@ -156,7 +156,7 @@
156156

157157
# Update to allow cancellation (organizer decision)
158158
status.can_cancel = True
159-
status.status = "CANCELLED"
159+
status.status = "CLOSED"
160160
status.submission_annotations.update(
161161
{
162162
"cancellation_reason": ["User requested cancellation"],

0 commit comments

Comments
 (0)