Skip to content

Commit

Permalink
Fix @search GET
Browse files Browse the repository at this point in the history
  • Loading branch information
cdevienne committed May 28, 2018
1 parent c2ac0b3 commit 37f15cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guillotina/api/search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from guillotina import configure
from guillotina.api.service import Service
from guillotina.async_util import IQueueUtility
Expand Down Expand Up @@ -27,6 +28,8 @@
})
async def search_get(context, request):
q = request.query.get('q')
if q:
q = json.loads(q)
search = query_utility(ICatalogUtility)
if search is None:
return {
Expand Down

0 comments on commit 37f15cd

Please sign in to comment.