Skip to content

Commit

Permalink
Fixing app search functionality returning all apps
Browse files Browse the repository at this point in the history
  • Loading branch information
LanternNassi committed May 31, 2023
1 parent 2c62ca4 commit 804a480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def get(self, project_id):
apps_data, errors = app_schema.dumps(apps)

else :
paginated = App.query.filter(App.name.ilike('%'+keywords+'%')).paginate(page=page, per_page=per_page, error_out=False)
paginated = App.query.filter(App.name.ilike('%'+keywords+'%') , App.project_id == project_id).paginate(page=page, per_page=per_page, error_out=False)
pagination = {
'total': paginated.total,
'pages': paginated.pages,
Expand Down

0 comments on commit 804a480

Please sign in to comment.