File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,9 @@ def set_main_entity(self, main_entity_filename: str):
216
216
)
217
217
self .crate .mainEntity .append_to ("version" , self .version , compact = True )
218
218
219
+ # remove duplicate entries for version
220
+ self .crate .mainEntity ["version" ] = list (set (self .crate .mainEntity ["version" ]))
221
+
219
222
# get keywords from nf-core website
220
223
remote_workflows = requests .get ("https://nf-co.re/pipelines.json" ).json ()["remote_workflows" ]
221
224
# go through all remote workflows and find the one that matches the pipeline name
@@ -236,6 +239,9 @@ def set_main_entity(self, main_entity_filename: str):
236
239
self .crate .mainEntity .append_to ("license" , self .crate .license )
237
240
self .crate .mainEntity .append_to ("name" , self .crate .name )
238
241
242
+ # remove duplicate entries for name
243
+ self .crate .mainEntity ["name" ] = list (set (self .crate .mainEntity ["name" ]))
244
+
239
245
if "dev" in self .version :
240
246
self .crate .creativeWorkStatus = "InProgress"
241
247
else :
You can’t perform that action at this time.
0 commit comments