def api_latest_beef(): """ Get a list of the lastest beef topics """ try: response = beef.latest() except: print traceback.format_exc() return jasonify(flag=1) return response
def index(): """ The base of the site, ie the index """ try: beef_list = beef.latest(10) except: print traceback.format_exc() return render_template('500.html') return render_template('index.html', beef_list=beef_list )
def index(): """ The base of the site, ie the index """ try: beef_list = beef.latest(10) except: print traceback.format_exc() return render_template('500.html') return render_template('index.html', beef_list=beef_list)