예제 #1
0
 def get(self, archive_id=None):
     i = request.args
     q = i.get('q', '') or i.get('text', '')
     callback = i.get('callback', '')
     if q:
         return get_searchinside_data(archive_id, q=q, callback=callback)
     return get_wordsinside_data(archive_id, callback=callback)
예제 #2
0
 def get(self, bid=None):
     i = request.args
     q = i.get('q', '') or i.get('text', '')
     callback = i.get('callback', '')
     if q:
         return get_searchinside_data(bid, q=q, callback=callback)
     return get_wordsinside_data(bid, callback=callback)