def serve_thread(board_shortname,thread_number): board_config = boards.get_settings(board_shortname) futabilly_thread_dict = ponychan.process_thread(board_config,thread_number) if futabilly_thread_dict is None: abort(404) json_to_send = json.dumps(futabilly_thread_dict) return json_to_send
def serve_catalog(board_shortname): board_config = boards.get_settings(board_shortname) catalog_dict = ponychan.read_catalog(board_config) futabilly_catalog = futabilly.futabilly_format_catalog(board_config,catalog_dict) json_to_send = json.dumps(futabilly_catalog) return json_to_send