Пример #1
0
def home(username):
    data = Database.getUser(username)
    print(data)
    return jsonify(data[1:3])
Пример #2
0
def home(username):
	data = Database.getUser(username)
	return jsonify(data[1])
Пример #3
0
def home(username):
    data = Database.getUser(username)
    print(data)
    if data[1] == "admin":
        return jsonify(data[1:3])
    return jsonify(data[3:5])