Mercurial > repos > iuc > ena_upload
diff process_xlsx.py @ 6:4aab5ae907b6 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ena_upload commit 7eafac9d91b39e43fd3820ab1431cab1c930bb01"
author | iuc |
---|---|
date | Mon, 15 Nov 2021 11:47:13 +0000 |
parents | 26ccb678abc8 |
children |
line wrap: on
line diff
--- a/process_xlsx.py Wed Oct 27 16:38:10 2021 +0000 +++ b/process_xlsx.py Mon Nov 15 11:47:13 2021 +0000 @@ -14,7 +14,7 @@ ''' define action ['add' | 'modify'] that needs to be perfomed for this entry ''' query = {entry_type + '_alias': alias} remote_accessions = check_remote_entry(entry_type, query) - if len(remote_accessions) > 0: + if isinstance(remote_accessions, list) and len(remote_accessions) > 0: print(f'Found: {entry_type} entry with alias {alias}') return 'modify' else: