Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
echoyang7 committed Oct 25, 2024
1 parent 61f050f commit 17be2d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lyrebird/mock/blueprints/apis/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_flow_list_by_filter(filter_obj, for_display):
target_items = Filter.get_items_after_filtration(all_items, filter_obj)
for item in target_items:
# If the response is not fully processed, do not return.
if not for_display and (not item.get('response') or not item.get('response', {}).get('headers', {}).get('lyrebird')):
if not for_display and item['duration'] == 0:
continue

info = dict(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_flow_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def client(checker_server):


def test_flow_list_with_get(client):
resp = client.get('/api/flow')
resp = client.get('/api/flow?for_display=true')
assert len(resp.json) == 5


Expand Down

0 comments on commit 17be2d6

Please sign in to comment.