def get(self):
     return aws_controller.get_items()
Exemple #2
0
def get_items():
    return jsonify(aws_controller.get_items())
Exemple #3
0
def crypto():
    #return "Crypto rates"
    return jsonify(aws_controller.get_items())
Exemple #4
0
def success():
    item = aws_controller.get_items()
    return render_template('success.html',
                           template='success-template',
                           item=item)
Exemple #5
0
def home():
    item = aws_controller.get_items()
    # return jsonify(aws_controller.get_items())
    return render_template('home.html', item=item)
Exemple #6
0
def test_get_items(table_name):
	# call our aws controller and cast as string:
	items = str(aws_controller.get_items(table_name))
	return items
Exemple #7
0
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)