mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
Fix state check for empty collections
This commit is contained in:
@@ -4008,8 +4008,10 @@ class DatasetCollection(Dictifiable, UsesAnnotations, RepresentById):
|
||||
extensions = set()
|
||||
states = set()
|
||||
for extension, state in db_session.execute(select_stmt).fetchall():
|
||||
states.add(state)
|
||||
extensions.add(extension)
|
||||
if state is not None:
|
||||
# query may return (None, None) if not collection elements present
|
||||
states.add(state)
|
||||
extensions.add(extension)
|
||||
|
||||
self._dataset_states_and_extensions_summary = (states, extensions)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user