Support search in search_action for sqlalchemy
The patch support search in search_action for sqlalchemy Change-Id: I73bc3d07328858160f2f14e1ba37ddaca4f2f2ce
This commit is contained in:
parent
b0b18bb38a
commit
1492a5e470
|
@ -551,7 +551,7 @@ def search_action(user_id, project_id=None, offset=0,
|
|||
|
||||
result = search_tuple(tablename=models.Action, user_id=user_id,
|
||||
project_id=project_id, offset=offset,
|
||||
limit=limit, search=search)
|
||||
limit=limit)
|
||||
for action in result:
|
||||
actionmap = {}
|
||||
actionmap['project_id'] = project_id
|
||||
|
@ -576,7 +576,7 @@ def search_action(user_id, project_id=None, offset=0,
|
|||
actionmap['freezer_action']['log_file'] = action.get('log_file')
|
||||
|
||||
actions.append(actionmap)
|
||||
|
||||
actions = filter_tuple_by_search_opt(actions, search)
|
||||
return actions
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue