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)
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)