mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Yet another fix for 714f5b1 (history contents API)...
Fix history contents API when setting visible and/or deleted.
This commit is contained in:
@@ -926,10 +926,10 @@ class History( object, Dictifiable, UsesAnnotations ):
|
||||
query = query.order_by( HistoryDatasetAssociation.table.c.hid.asc() )
|
||||
deleted = galaxy.util.string_as_bool_or_none( kwds.get( 'deleted', None ) )
|
||||
if deleted is not None:
|
||||
query = query.filter( HistoryDatasetAssociation.deleted == bool( kwds['deleted'] ) )
|
||||
query = query.filter( HistoryDatasetAssociation.deleted == deleted )
|
||||
visible = galaxy.util.string_as_bool_or_none( kwds.get( 'visible', None ) )
|
||||
if visible is not None:
|
||||
query = query.filter( HistoryDatasetAssociation.visible == bool( kwds['visible'] ) )
|
||||
query = query.filter( HistoryDatasetAssociation.visible == visible )
|
||||
if 'ids' in kwds:
|
||||
ids = kwds['ids']
|
||||
max_in_filter_length = kwds.get('max_in_filter_length', MAX_IN_FILTER_LENGTH)
|
||||
|
||||
Reference in New Issue
Block a user