예제 #1
0
 def get(self):
     return aws_controller.get_items()
예제 #2
0
def get_items():
    return jsonify(aws_controller.get_items())
예제 #3
0
def crypto():
    #return "Crypto rates"
    return jsonify(aws_controller.get_items())
예제 #4
0
def success():
    item = aws_controller.get_items()
    return render_template('success.html',
                           template='success-template',
                           item=item)
예제 #5
0
def home():
    item = aws_controller.get_items()
    # return jsonify(aws_controller.get_items())
    return render_template('home.html', item=item)
예제 #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
예제 #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)