def get(self): return aws_controller.get_items()
def get_items(): return jsonify(aws_controller.get_items())
def crypto(): #return "Crypto rates" return jsonify(aws_controller.get_items())
def success(): item = aws_controller.get_items() return render_template('success.html', template='success-template', item=item)
def home(): item = aws_controller.get_items() # return jsonify(aws_controller.get_items()) return render_template('home.html', item=item)
def test_get_items(table_name): # call our aws controller and cast as string: items = str(aws_controller.get_items(table_name)) return items
def test_parse_items(table_name): items = aws_controller.get_items(table_name) parsed_items = "" for i in items: parsed_items += (str(i) + '\n') print(parsed_items)