Пример #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)