Example #1
0
 def _process(self, args):
     return jsonify(get_suggestions(args, limit=NUM_SUGGESTIONS))
Example #2
0
 def _process(self, args):
     return jsonify(get_suggestions(args, limit=NUM_SUGGESTIONS))
Example #3
0
 def _process(self, args):
     return jsonify([
         dict(suggestion,
              room=rooms_schema.dump(suggestion['room'], many=False).data)
         for suggestion in get_suggestions(args, limit=NUM_SUGGESTIONS)
     ])