Skip to content

Commit 3e16a32

Browse files
committed
Ensure general description
1 parent a6a8da4 commit 3e16a32

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

biomero/slurm_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,6 +2059,12 @@ def pull_descriptor_from_github(self, workflow: str) -> Dict:
20592059
descriptor['container-image'] = {'image':
20602060
image.get('org') + '/' + image.get('name') # + ':' + image.get('tag')
20612061
}
2062+
if 'description' not in descriptor:
2063+
general_description = ''
2064+
citations = descriptor.get('citations', [])
2065+
if len(citations) > 0:
2066+
general_description = citations[0].get('description')
2067+
descriptor['description'] = general_description
20622068
return descriptor
20632069

20642070
def get_or_create_github_session(self):

0 commit comments

Comments
 (0)