File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,8 +58,13 @@ def publish2rs():
5858 to_create .append ({"name" : name })
5959 elif remote_attachment ["hash" ] != hash :
6060 to_update .append ({"id" : remote_attachment ["id" ], "name" : name })
61- # Remaining records in `remote_attachments` are to be deleted.
62- to_delete = [{"id" : record ["id" ]} for _ , record in remote_attachments .items ()]
61+ # Remaining records in `remote_attachments` are to be deleted but only records the
62+ # pipeline manages (disconnect-prefixed).
63+ to_delete = [
64+ {"id" : record ["id" ]}
65+ for name , record in remote_attachments .items ()
66+ if name .startswith ("disconnect-" )
67+ ]
6368
6469 # Print changes
6570 print ("Changes to apply:" )
@@ -98,4 +103,4 @@ def publish2rs():
98103 # Request review.
99104 print ("Request review..." , end = "" )
100105 client .request_review (message = "r?" )
101- print ("✅" )
106+ print ("✅" )
You can’t perform that action at this time.
0 commit comments